Are there any examples of using malli only in dev, where you don’t want it as a release dependency? does malli provide any direct support for this? (I’ve not found anything in my searches)
I think it ends up looking like spec, you have a separate ns with all your schemas and m/=> calls, analogous to https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc/spec.clj
That seems to just be schemas. Presumably I would need some sort of macros to wrap validation and explain calls, so they can be elided in release code.
ah so you're after dev-time inline assertions? haven't seen that
the function specs may be sufficient. Thanks.
@hugod here’s an example: https://codeberg.org/jyn514/flower/src/commit/46ff47b2c5a1e3d71b2aa0e7ce5fc8818e421dea/flower/main.clj#L322 and the corresponding compile-clj call: https://codeberg.org/jyn514/flower/src/commit/46ff47b2c5a1e3d71b2aa0e7ce5fc8818e421dea/native.clj#L156
thanks @jyn514 - I’ll take a look at malli.instrument