[#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:18115] Re: New array methods cycle, choice, shuffle (plus bug in cycle)

From: gdefty@...
Date: 2008-08-04 07:08:17 UTC
List: ruby-core #18115
on Mon, August 04, 2008, Yukihiro Matsumoto writes:

| I am against #sample!, because
|  * #sample! is not the receiver modifying
version of #sample.

Maybe I have misunderstood, but my understanding
of #sample! is that it DOES modify the receiver
(i.e. the array, by deleting the elements
returned) and is otherwise functionally identical
to #sample. I would have thought that was a
receiver-modifying version of #sample.


|  * the intention can be expressed much better by
applying #shuffle first,
|    then retrieving some elements from the
randomized array.


In your email of Mon, August 04, 2008, 01:31:00,
you said:
|  Either ary.shuffle[0] or ary[rand(ary.length)]
do not
|  express my intention directly.

Have I missed something?

Regards,

graeme


In This Thread

Prev Next