[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18157] Re: New array methods cycle, choice, shuffle (plus bug in cycle)

From: "Martin DeMello" <martindemello@...>
Date: 2008-08-07 07:05:18 UTC
List: ruby-core #18157
On Wed, Aug 6, 2008 at 10:48 PM, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> Hi,
>
> In message "Re: [ruby-core:18133] Re: New array methods cycle, choice, shuffle (plus bug in cycle)"
>    on Tue, 5 Aug 2008 23:37:57 +0900, "Martin DeMello" <martindemello@gmail.com> writes:
>
> |The second point looks wrong to me - I'd expect sample! to remove a
> |random set of elements from the array without disturbing the ordering
> |of the remaining elements.
>
> Then what your expectation works for?  I cannot think of a situation
> where the difference means much.  Is there any use-case for it?

Just consistency - if the array was ordered for a reason, I wouldn't
expect a sampling method to disrupt that ordering.

for instance:

books = bookshelf.sample!(5)
pick_a_card_any_card = deck.sample!

martin

In This Thread