Skip to content

Instantly share code, notes, and snippets.

@moxaj
Created March 21, 2017 15:51
Show Gist options
  • Save moxaj/42ac29e8f9137dbfb23fe030bdced95f to your computer and use it in GitHub Desktop.
Save moxaj/42ac29e8f9137dbfb23fe030bdced95f to your computer and use it in GitHub Desktop.
(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