Dec. 1, 2012
8:44 p.m.
2012/12/1 Frank Shearar <frank.shearar@gmail.com>:
I'm not sure that's a limitation of the JVM (not being able to extend classes, that is): in Clojure you can happily extend existing types through extend-type:
(extend-type clojure.lang.IPersistentVector ComparableParser (eq [this that] (reduce #(and %1 %2) (map eq this that))))
I'm no Clojure expert, but it looks like what you're doing is implementing an interface at runtime. If that's the case, the JVM has no problem doing that.