On Wed, Jul 6, 2011 at 4:23 AM, Konrad Hinsen <konrad.hin...@fastmail.net> wrote: > On 6 Jul, 2011, at 9:58 , Ken Wesson wrote: > >> Multimethods of course are too slow for core arithmetic functions but >> we have protocols now and when a protocol is implemented inline in a >> datatype it runs as efficiently as any Java method call. > > clojure.contrib.generic uses multimethods for binary dispatch. This cannot be > done using protocols. Generic maths with Java-style dispatch is probably less > useful, though of course faster.
It's clearly the only option if you want to remain speed-competitive with the current implementation of core math. And clojure.contrib.generic would presumably not be going away, for those who really need binary dispatch much more than they do speed. -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- 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