From: Clifford Heath Date: 2012-03-29T07:19:00+09:00 Subject: [ruby-core:43823] Re: [ruby-trunk - Feature #6219] Return value of Hash#store On 29/03/2012, at 8:40 AM, MartinBosslet (Martin Bosslet) wrote: > Right, good point. OK, then let me rephrase it for explicitly calling store. ... > That way I can check for collisions in one pass without having to call has_key? first. It's a nice thought, but about fifteen years too late - you can't just change fundamental things like this without introducing all sorts of subtle bugs into people's programs. Write a new method (e.g. put(x)) that has the behaviour you want. Clifford Heath.