From: matz@... (Yukihiro Matsumoto) Date: 2003-03-03T11:14:21+09:00 Subject: Re: Bug in date.rb? Hi, In message "Bug in date.rb?" on 03/03/03, Child writes: |So I can't compare a date with nil, because I get an error. Instead I |have to write something like date.instance_of? NilClass, which is |something unnecessary complicated. | |Why is this implemented this way? Why do you want to compare date with nil, when nil <=> date raises NoMethodError? Although it is better complied to other part of Ruby, if it returns nil instead of raising exception. matz.