== < <= > >= are all numeric equality/comparison functions.

= and 'compare are object equality/comparison functions.



On Apr 20, 6:47 pm, Bill Allen <b...@k2bea.org> wrote:
> I've been writing a program that requires the use of java.util.Calendar and
> its descendent java.util.GregorianCalendar. One thing I'd hoped to do was
> compare two Calendar objects with <, but the compiler complained that the
> arguments to < didn't inherit from Number which was a surprise to me because
> Calendar does inherit from java.lang.Comparable which in java land would be
> sufficient to enable it to be compared with other members of its class using
> the built in java comparison operators. Since I know that clojure has other
> operations that deal with comparable, I assume this is a conscious decision,
> but I question why it should be so.
>
> Regards,
> Bill
>
> --
> 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
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/clojure?hl=en

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to