Hi,

In message "Re: Exceptions and <=>"
    on 02/05/18, Paul Brannan <pbrannan / atdesk.com> writes:

|It just occurred to me that an alternative would be to use nil:
|
|  module Comparable
|    def <(other)
|      result = self <=> other
|      return result.nil? ? false : result
|    end
|  end
|
|Thus <=> could have five possible results:
|    -1       less than
|     0       equal
|     1       greater than
|    nil      none of the above
|  exception  an exceptional condition (error) occurred

Hmm, I like this one.  Let me consider.

							matz.