macro | removed v1.9.542 | added v1.9.14 | Edit |
(def k spec-form)
Given a namespace-qualified keyword or resolveable symbol k, and a spec, spec-name, predicate or regex-op makes an entry in the registry mapping k to the spec
(defmacro def
[k spec-form]
(let [k (if (symbol? k) (ns-qualify &env k) k)
form (res &env spec-form)]
(swap! registry-ref assoc k form)
`(def-impl '~k '~form ~spec-form)))