From: Avdi Grimm Date: 2008-04-05T12:53:17+09:00 Subject: Re: The ||= assignment operator On this topic, am I the only one who would really like to see a dedicated "defaulting operator" in Ruby? Something that actually has the semantics which a lot of people mistakenly assume for ||=, i.e. "assign if and only if nil"? I think Perl6 uses the //= operator for this. This is such a subtle gotcha. I've seen a lot of code that was potentially buggy because it didn't account for the fact that the 'false' value would be handled incorrectly. -- Avdi