From: Christoph Rippel Date: 2000-12-20T01:00:00+09:00 Subject: [ruby-talk:7698] RE: More methods for NilClass Hi, Ruby would certainly gain in elegance if the NilClass would provide some of these methods including iterators like def nil.each(*all) end (which in my opinion are much less problematic) but this cannot be done blindly. The problem with nil.size == 0 for example is that the right semantic interpretation for nil.size could be anything from -infinity, -1, 0 or infinity so you are better of by defining this behavior in the preamble of our script instead of enforcing a uniform behavior of nil for everybody. Christoph