Fork me on GitHub
#malli
<
2024-01-07
>
ikitommi09:01:27

🚀 The Var-references are merged in master, also a clj-kondo https://github.com/metosin/malli/pull/987 for :fn schemas. Moved mu/deref-recursive into malli.core. Could cut out a release soon with all the stuff in. About Var references: • Var-registry is enable by default, needs to be added manually if using mr/set-default-registry! • Var deserialization is not enabled by default - does not work with ClojureScript and make GraalVM Native Images larger (thanks to @borkdude) ◦ can be enabled fro Clojure is one needs that Below screenshots of using the Var Refs & error if one tries to deserialize those with malli.edn/read-string:

🎉 3
ikitommi09:01:12

Var refs vs Var values - just like with Clojure • refs retain the name of the reference - value can change if the var is reassigned • values are inlined if you use references, you can inline the values with m/deref-recursive.