Skip to content

Instantly share code, notes, and snippets.

@mpenet
Created December 10, 2019 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpenet/fa611105b4a0a38126c5ba8ffe60d8a7 to your computer and use it in GitHub Desktop.
Save mpenet/fa611105b4a0a38126c5ba8ffe60d8a7 to your computer and use it in GitHub Desktop.
(clojure.spec.alpha/def ::asd (clojure.spec.alpha/keys :req [::foo]))
(clojure.spec.alpha/valid? ::asd {})
false
(clojure.spec.alpha/valid? ::asd {::foo 1})
true
;; ::foo was never declared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment