From: dblack@... Date: 2007-09-03T22:37:56+09:00 Subject: Re: assigning to hash keys when there is a default value? Hi -- On Mon, 3 Sep 2007, Russell Norris wrote: > I learned that x ||= y means set x to y unless x, so I don't see the > bug. and i don't see this as being at all unpredictable. either way > you expect it to work, it either fails 100% or succeeds 100%. :) the > only problem is when you expect it to do something it doesn't do, > which is tautologically what every problem is i guess. I guess one can just accomodate oneself to whatever happens, in which case there are no bugs... but somehow it never seems to play out that way :-) Anyway, we're going around in circles. I think I might hop over to ruby-core and see what people think. David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)