From: Austin Ziegler Date: 2005-02-22T00:04:16+09:00 Subject: Re: destructive! operations On Mon, 21 Feb 2005 23:54:42 +0900, Robert Klemme wrote: > "Austin Ziegler" schrieb im Newsbeitrag > news:9e7db91105022106401bd2e5e@mail.gmail.com... > > On Mon, 21 Feb 2005 06:07:58 +0900, Navindra Umanee > > 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. > > I'm far happier that they aren't. > I didn't miss this "feature" either. I suspect that an unfinished > transition from Perl to Ruby makes people voice such whishes... :-) Or C++/Java to Ruby (not the "", but definitely the 0). I *have* been bitten by 0/false problems in translations, but very few. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca