[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Hash insertion order preservation in ruby1.9
From:       Evan David Light <evan () tiggerpalace ! com>
Date:       2008-03-31 21:49:40
Message-ID: 8ADF1546-3FE6-4F01-899E-4E4E18B06DF4 () tiggerpalace ! com
[Download RAW message or body]

Cool!  I've seen folks trip themselves up on this using 1.8.6 before  
because of an assumption in their mental model of the language.  Nice  
to see this addressed.

Sent from my iPhone

On Mar 31, 2008, at 5:30 PM, MenTaLguY <mental@rydia.net> wrote:

> On Tue, 1 Apr 2008 06:18:51 +0900, Yukihiro Matsumoto <matz@ruby-lang.org 
> > wrote:
>> |(1) Can I rely upon hash insertion order preservation as an approved
>> |new feature of Ruby, without any risk that it may get lost again in
>> |future releases ?
>>
>> For CRuby, yes.  For Ruby the language, we have to make up consensus
>> with other implementations.
>
> I think it is safe to say it will remain in JRuby as well.  The new
> behavior has allowed us to optimize hash iteration since it is now
> entirely deterministic.
>
> -mental
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic