Re: [ClojureScript] Multimethods -- problem with :default and multiple dispatch values

2015-10-01 Thread David Nolen
Questions and discussions like this which enhance the language should be directed to the clojure-dev mailing list. While there are a few exceptions, for the most part we only take enhancements that have already been incorporated into Clojure itself. David On Thu, Oct 1, 2015 at 5:19 AM, Tom

[ClojureScript] Multimethods -- problem with :default and multiple dispatch values

2015-10-01 Thread Tom Locke
One of the benefits of Clojure(Script)'s multimethods over traditional OO polymorphism is that you can dispatch on multiple values. For example, we can dispatch on the types of all the arguments, instead of just the first one: (defmulti example (fn [x y] [(type x) (type y)])) My question is