malli

2025-10-30T21:26:52.001759Z

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)

2025-10-30T21:34:54.127379Z

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

2025-10-30T21:39:37.281709Z

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.

2025-10-30T21:42:15.896559Z

ah so you're after dev-time inline assertions? haven't seen that

2025-10-30T21:43:00.541399Z

the function specs may be sufficient. Thanks.

👍 1
2025-10-31T00:10:43.989989Z

thanks @jyn514 - I’ll take a look at malli.instrument