Navindra Umanee <navindra / cs.mcgill.ca> wrote:
> Often think it would be nice if "" and 0 were treated like nil.  Such
> functions could then return "".  Heck, NilClass.to_s and NilClass.to_i
> already return "" and 0 respectively.

"false" too..

Incidentally I tried to make "", 0 and false respond positively to
nil?.  While they did, none of the boolean tests looked at nil? to
make their decision.  I guess that's the optimized part.

Cheers,
Navin.