whats wrong with clojure.contrib.generic.arithmetics? Too slow? The only other method that i know of is too :
(a). use defprotocol, but this will only dispatch on the first value (b). use gen-class, but this require aot compilation For the first approach, see https://github.com/ztellman/cantor/blob/master/src/cantor/vector.clj and https://github.com/ztellman/cantor And if you want to use + and * in the namespace, you can do something like: (ns test (:refer-clojure :exclude [+ *])) Or, if you dont feel like doing refer-clojure every time, you might be interested in this: http://planet-clojure.org/page28.html under "Computing with Units and Dimension" -- 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