>Yes, the general consensus is that basic math needs to be as fast as >possible, even at the expense of some flexibility.
It's worth noting here that one can also use binding to override other than arithmetic core functions; (defn ustr [s] (binding [clojure.core/str (fn [x] (.toUpperCase x))] (str s))) user=> (ustr "aaa") "AAA" As expected, that doesn't work with +; (defn xplus [a b] (binding [clojure.core/+ (fn [x y] (- x y))] (+ a b))) user=> (xplus 5 2) 7 Rgds, Adrian. --~--~---------~--~----~------------~-------~--~----~ 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---