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

From: "Gregory Brown" <gregory.t.brown@...>
Date: 2008-08-01 20:51:29 UTC
List: ruby-core #18071
So Jim I guess I'm actually responding to the footnote in your footnote.

On Fri, Aug 1, 2008 at 4:45 PM, Jim Weirich <jim.weirich@gmail.com> wrote:

> [1] Yes, I know you can do arr.sample.first.  Blech.[2]
>
> [2] And if anyone suggests that sample(1) should return a single element and
> sample(2) should return an array, I will ... Well, I don't know what I'll
> do.  But it won't be pretty.

Good point.  In my head this is how I saw this method working, but in
practice this would be gross, since I can think
of it creating annoying inconsistencies and surprises.  And
arr.sample.first is just not pretty.

-greg

In This Thread