On Tue, Nov 4, 2008 at 3:12 PM, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Nov 4, 9:00 am, "Christian Vest Hansen" <[EMAIL PROTECTED]> > wrote: >> "Generally" by custom but not required by contract of the Comparable >> interface. And those are all Numbers, right? >> >> Comparable imposes natural ordering, and the individual implementor is >> free to decide how to handle objects of different types; throwing a >> ClassCastException only being one of the possible reactions. >> > > True, except the individual implementors of Integer, Long, Double etc > have already decided to have them compare only to their exact type, so > we're stuck with that fact.
So it does. I did not expect that; thought the standard numeric coercion rules applied. -- Venlig hilsen / Kind regards, Christian Vest Hansen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---