Re: setting nil to zero


#1

Robert K. [mailto:removed_email_address@domain.invalid] wrote:

#Why so complicated? Why not just
#class NilClass

def +(n) n end

#end

why can i not see the simple light? :slight_smile:

#Note, I recommend to use the veriant with 0 as default value for Hash
#lookups because that avoids tampering with standard classes.

thanks for the advice, Robert.
kind regards -botp

#Cheers

robert