3 ms·
Here's what I mean by Malli's inability to check macros. https://github.com/clojure/clojure/blob/ad54fec/src/jvm/clojure/lang/Compiler.java#L7520 https://githu
by koito17 2y ago
Here's what I mean by Malli's inability to check macros.
https://github.com/clojure/clojure/blob/ad54fec/src/jvm/clojure/lang/Compiler.java#L7520 https://github.com/clojure/clojure/blob/ad54fec/src/jvm/cloj...
The Clojure compiler directly calls into clojure.spec and does not expose any sort of hook for validating macros. No library can validate macros except clojure.spec. In this sense, Malli feels like a second-class citizen in Clojure compared to the built-in clojure.spec.
- eduction 2y agoAh thanks for explaining! I did not know they special cased spec. I hope that changes.