Re: Arguments for < and > et al

2010-04-22 Thread Bill Allen
I thought there might be a performance reason in there. Thanks for the pointer to clj-time. Looks like a huge improvement over java date/calendar. BTW: love the book. Mine is already getting dog eared. On Apr 21, 2010 8:24 AM, "Stuart Halloway" wrote: The built-in Java comparison operators don'

Re: Arguments for < and > et al

2010-04-21 Thread ataggart
== < <= > >= are all numeric equality/comparison functions. = and 'compare are object equality/comparison functions. On Apr 20, 6:47 pm, Bill Allen 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 h

Re: Arguments for < and > et al

2010-04-21 Thread Stuart Halloway
The built-in Java comparison operators don't honor Comparable either. In Clojure, it's about keeping (pure number) math fast. If you are doing any nontrivial date work, I recommend you look at clj- time (http://github.com/clj-sys/clj-time), a Clojure wrapper for Joda Time. Then, if you real