Last active
February 6, 2019 03:55
-
-
Save lnostdal/e7c3ec6f3ada2485e1588259fd991136 to your computer and use it in GitHub Desktop.
clojure compiler bug?
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
;; 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