From: Phlip Date: 2008-08-25T05:55:59+09:00 Subject: Re: Why 'if 0' succeeds in Ruby Stefan Rusterholz wrote: > 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. And he covered that in his examples. He was using == false as a shortcut to say "conditionally false".