From: JB Eriksson Date: 2005-11-23T08:16:32+09:00 Subject: Re: a == nil or a.nil? ------=_Part_34024_15845667.1132701386940 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 11/23/05, ako... wrote: > > hello, > > this is more of a philosophical question. my C experience makes me feel > more comfortable with expressions such as 'a =3D=3D nil' rather than > a.nil?. i feel strange when i invoke a method on a nil value. i know, > nil is also an object and not just a zero reference but still it feels > strange... > > would the experts please comment on why one way would be preferable > over the other? also, i am curious to know why nil? has been > implemented at all? is '=3D=3D nil' not enough? > > thanks > konstantin > > > for readability, I wager. ------=_Part_34024_15845667.1132701386940--