> The idiomatic Clojure way of doing what you want is to define *one*
> method against something higher up in the hierarchy than both :a and :b.
>
> For example, if your two values are ::get and ::head, perhaps you
> should be defining a handler for ::idempotent-http-method.
Thanks; fits perf
> (hypothetic-defmethods some-multi [:a :b] [arg] (do-something))
Multimethods are dispatched using isa?.
The idiomatic Clojure way of doing what you want is to define *one*
method against something higher up in the hierarchy than both :a and :b.
For example, if your two values are ::get and
Hi,
I'd like to know whether there is already something in clojure.contrib
that installs a method with multiple dispatch-values, i.e. given a
multimethod like:
(defmulti some-multi identity)
instead of installing several methods with different dispatch values
that do the same thing:
(defmethod