2 ms·
Didn't know about ABCL :) You have defprotocol to dispatch based on types in clojure. There's deftype to dynamically create classes and Java has reflection to
by jeremiep 10y ago
Didn't know about ABCL :)
You have defprotocol to dispatch based on types in clojure. There's deftype to dynamically create classes and Java has reflection to begin with. You can call .getClass at runtime (which is what the type function does).
- junke 10y agoThanks