From: Dirk Traulsen Date: 2007-10-17T17:23:36+09:00 Subject: Re: nil.to_i returning zero Am 17 Oct 2007 um 16:31 hat Robert Dober geschrieben: > On 10/16/07, Rick DeNatale wrote: > > On 10/16/07, Robert Dober wrote: > > > > > Nevertheless one question remains, where is the border between > > > a += 1 > > > a << 3 > > > a << ( :a=>42 ) > > > a << ?a > > > > For these I'd draw the border at mutating operators. > Reasonable choice I have to admit ;) I think this is a reasonable proposal: class NilClass def +(obj) obj end end Can you think of any case in which this poses a problem? It should be universally true.