From: Jim Weirich Date: 2007-11-13T02:21:11+09:00 Subject: Re: Time#== bug? On Nov 12, 2007, at 12:09 PM, Berger, Daniel wrote: > Looks like Time#== always returns nil when compared against an invalid > type. All the other Comparable operators return an ArgumentError: I don't think it should ever be an error to ask if an object is equal to any other object. Nil (or false) would be the correct response in the example you gave. Ordering operators are different. It make no sense to ask of 5 O'Clock is less than a hamburger, so an ArgumentError is appropriate when the items asked to be ordered are not comparable. -- -- Jim Weirich -- jim.weirich@gmail.com