On Dec 14, 2:31 am, Konrad Hinsen <konrad.hin...@fastmail.net> wrote: > That's actually what clojure.contrib.complex-numbers already uses! And > it's based on multimethods, not protocols, because of all those binary > operations.
It is possible, though not trivial, to do 2-argument dispatch with protocols. See http://paste.lisp.org/+2023 for an example. I have no idea how well this performs compared to multimethods. -Stuart Sierra -- 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