On Sat, Jun 26, 2010 at 4:04 AM, Rich Hickey <[email protected]> wrote: > equiv, the revenge of num
Has it already been decided that some sort of this new numeric tower will find its way into Clojure? Personally, I think this change will open a can of worms and make programming in Clojure more difficult and error prone. I don't think there is a nice and clean solution to the numeric problem (Clojure is not the first language tackling it) but there are two possibilities that could produce an acceptable trade off: - using boxed math everywhere and optimizing performance by storing preallocated Integers in a cache, - using both boxed and primitive math but keeping the boundary between them as explicit as possible (different operators, no automatic conversion etc.). Existing operators should default to boxed math (for runtime safety and compatibility). Andrzej -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
