On Mar 20, 2009, at 16:35, Paul Stadig wrote:

> You could use multiple multi-methods:

...

Not pretty, as you said, but also not quite the same in behaviour as  
a single multimethod dispatching on both arguments. Multiple dispatch  
can be made symmetric in the arguments, whereas a chain of  
multimethods always implies a dispatch hierarchy. In your example,  
the type of the first argument always dominates.

Konrad.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to