From: Evan David Light Date: 2008-04-01T06:49:40+09:00 Subject: Re: Hash insertion order preservation in ruby1.9 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 wrote: > On Tue, 1 Apr 2008 06:18:51 +0900, Yukihiro Matsumoto > 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 > >