From: ThoML Date: 2008-03-03T21:10:17+09:00 Subject: Re: Dealing with nil Is there really an advantage over the more "traditional" solutions: x && x.foo x.foo if x x || 1 x ? x.foo : 1 x && x.foo || 1 Apart from that I think one should rather deal with nils explicitly (and maybe a little bit earlier than in your examples). BTW I personally would rather prefer a statement that throws an error if an unchecked nil is assigned to a variable. (Which isn't too difficult to do.[1]) Regards, Thomas. [1] http://groups.google.com/group/comp.lang.ruby/msg/9fe1b629764a196a