Skip to content

Instantly share code, notes, and snippets.

@hiredman
Created May 31, 2013 17:48
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 hiredman/5686648 to your computer and use it in GitHub Desktop.
Save hiredman/5686648 to your computer and use it in GitHub Desktop.
Clojure 1.6.0-master-SNAPSHOT
user=> (fn [x] (let [y x] y))
#<user$eval1$fn__2 user$eval1$fn__2@4bb807ac>
user=> (set! *observe-locals-clearing* true)
true
user=> (fn [x] (let [y x] y))
Emitting x NO_SOURCE_PATH:3:1
Clearing x NO_SOURCE_PATH:3:1
Emitting y NO_SOURCE_PATH:3:1
Clearing y NO_SOURCE_PATH:3:1
#<user$eval7$fn__8 user$eval7$fn__8@60abe06e>
user=> (fn [x] (let [y (+ x x)] y))
Emitting x NO_SOURCE_PATH:4:1
Emitting x NO_SOURCE_PATH:4:1
Clearing x NO_SOURCE_PATH:4:1
Emitting y NO_SOURCE_PATH:4:1
Clearing y NO_SOURCE_PATH:4:1
#<user$eval11$fn__12 user$eval11$fn__12@7ccbc403>
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment