From: James Coglan Date: 2009-02-13T00:59:08+09:00 Subject: Re: If you are happy with the direction of Ruby 1.8.7+, respond --000e0cd24746c46b770462bad1f4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/2/12 Jeremy Henty > On 2009-02-11, Pit Capitain wrote: > > 2009/2/11 Rados?aw Bu?at : > >> h={} > >> h[{"foo" => 1}] = 100 > >> p h[{"foo" => 1}] > >> > >> ruby 1.8.6 prints "nil", 1.8.7 prints "100". > > > > Ah, you mean Hash#hash. Thanks a lot, I didn't know that. But this > > is an example where the 1.8.7 version yields the result most people > > would expect, > > No it doesn't. Most people would expect 1.8.7 to yield the same > result as 1.8.6 . That is the point. Though I fall on the 'unhappy' side, this change is clearly fine: 1.8.6 behaviour is clearly a bug and should be fixed, that's the point of bug fix releases. Relying on buggy behaviour is a bad idea, and so is making changes to ostensibly correct behaviour in minor releases. --000e0cd24746c46b770462bad1f4--