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 stuart.hallo...@gmail.com wrote: The built-in Java

Arguments for and et al

2010-04-21 Thread Bill Allen
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

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

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 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