Setting nil to zero

#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 Klemme [mailto:bob.news@gmx.net] wrote:

#
# robert
#
#
#