Closed camsaul closed 11 months ago
Note sure if this is intentional behavior, but if it is I couldn't find it documented anywhere. I would have assumed := just compares things with clojure.core/=
:=
clojure.core/=
(malli.core/validate [:= {}] {}) ;; => Execution error (ExceptionInfo) at malli.core/-exception (core.cljc:138). ;; => :malli.core/child-error (malli.core/validate [:= {}] {1 2}) ;; => Execution error (ExceptionInfo) at malli.core/-exception (core.cljc:138). ;; => :malli.core/child-error (malli.core/validate [:= {1 2}] {1 2}) ;; => Execution error (ExceptionInfo) at malli.core/-exception (core.cljc:138). ;; => :malli.core/child-error
Nevermind, I realize this is because it's assuming the map is an options map rather than the value I'm trying to compare with =
=
Note sure if this is intentional behavior, but if it is I couldn't find it documented anywhere. I would have assumed
:=
just compares things withclojure.core/=