Leif is right, but isa?'s docstring doesn't mention this behavior. Here's
the relevant
code:
https://github.com/clojure/clojure/blob/028af0e0b271aa558ea44780e5d951f4932c7842/src/clj/clojure/core.clj#L5120
On Tuesday, May 13, 2014 12:22:28 AM UTC-4, Leif wrote:
Hi, Ranko.
I *think* it's
Why is something like
(derive [::matrix ::ring-element] ::ring-element)
prevented by the assertion in clojure.core/derive?
Is there something that is an actual show-stopper
or is this an implementation detail?
Cheers,
ranko
--
You received this message because you are subscribed to the
Hi, Ranko.
I *think* it's because vectors are handled specially during dispatch, to
easily handle both dispatching on multiple args and hierarchies:
isa?http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/isa?works
with vectors by calling