Skip to content

Instantly share code, notes, and snippets.

@lnostdal
Last active February 6, 2019 03:55
Show Gist options
  • Save lnostdal/e7c3ec6f3ada2485e1588259fd991136 to your computer and use it in GitHub Desktop.
Save lnostdal/e7c3ec6f3ada2485e1588259fd991136 to your computer and use it in GitHub Desktop.
clojure compiler bug?
;; maybe something related to locals clearing and/or forwarding of bindings (?)
;; warning: this will lead to heap overflow quite fast!
(let [s (range)]
(if true
(future
(loop [s s]
(recur (rest s))))
:whatever))
;; NOTE, this works fine:
(let [s (range)]
(loop [s s]
(recur (rest s))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment