A long time ago I posted some macros to do double-dispatch with protocols 
and records. The link was http://paste.lisp.org/+2023 but it no longer 
works.

The basic idea is you dispatch on the first argument to an intermediate 
type that then dispatches on the second argument. It's complicated, but 
essentially mechanical.

Clojure multimethods have built-in multi-argument dispatch.

-S

-- 
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

Reply via email to