From: Luke Graham Date: 2005-05-06T12:07:41+09:00 Subject: Re: RCR 303: nil should accept missing methods and return nil On 5/6/05, John Carter wrote: > I expect if this is accepted to see a bunch of knock on RCR's, namely > nil+n == n > nil * 7 == 0 > -nil == 0 > > We already have > nil.to_s == "" > nil.to_i == 0 > nil.to_f == 0.0 This would be a big change to behaviour and a lot of existing programs could have problems with it. Because integers already have a to_i(), its possible to do this... x.to_i + 3 and have it do what you want. -- spooq