From: Stefan Rusterholz Date: 2008-08-25T05:41:37+09:00 Subject: Re: Why 'if 0' succeeds in Ruby matu wrote: > Dave Bass wrote: > >> False and nil are two quite different concepts and should not be >> conflated. > > I agree with you. I am also used to this. nil should never == true, and > neither be == false. Every comparison with nil should just fail. Well, I suggest you actually try the expression 'nil == false' in irb. I think you'll be happy to see that it *is* false. Nil in ruby does NOT equal false. As in my earlier post, it only is conditionally false, which is a whole different beast. Regards Stefan (apeiros) -- Posted via http://www.ruby-forum.com/.