From: Gregory Brown Date: 2006-10-29T07:57:20+09:00 Subject: Re: nil.to_s != "nil" On 10/28/06, Logan Capaldo wrote: > Of course there's _tons_ of code out there that relies on nil.to_s being > the empty string. I don't expect it will change anytime soon. Besides, we already have syntax that prevents this from being terribly ugly anyway. >> @foo = "" => "" >> @foo.nil? => false >> @foo.empty? => true I like knowing the difference between an empty string and an undefined value.