On 7/18/07, MenTaLguY <mental / rydia.net> wrote:
> On Wed, 2007-07-18 at 22:56 +0900, Robert Dober wrote:
> > > Lets not forget also that doing things for the sake of being different help no
> > > one. I for one must work in multiple languages. I still haven't forgiven Matz
> > > for the whole, "0 is true" thing. ;-)
> > That is the single best feature of Ruby once you got used to it --
> > with "" is true!!!
>
> One of the biggest advantages to this is that it makes || and ||=
and one of its biggest dangers too, I wonder how much time has been
spent in looking for "Why has my already (with false) initialized
variable been overwritten?"
I am *not asking* that false evaluates to true, but I suggest that

x=false
x||=42
x --> false

or even
x ??= 42
for that semantics.

Robert

-- 
I always knew that one day Smalltalk would replace Java.
I just didn't know it would be called Ruby
-- Kent Beck