Created
March 21, 2017 15:51
-
-
Save moxaj/42ac29e8f9137dbfb23fe030bdced95f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.spec :as s]) | |
(s/def ::a any?) | |
(s/def ::x (s/keys :opt-un [::a])) | |
(let [x (loop [i 0 | |
x {:a 10}] | |
(if (== i 10000) | |
x | |
(recur (inc i) {::x x})))] | |
(s/valid? ::x x)) | |
;; => StackOverFlowError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment