Re: Re: Re: C#'s "Coalesce" Operator
by
Anonymous
The situation's even worse in Python... apparently zero, empty strings, empty lists, empty tuples and empty hashes are all false.
I can see why it might have been designed that way (not least because I don't think Python had a Boolean type until quite recently) but I think I prefer Ruby's approach.