Last active
December 23, 2015 01:00
-
-
Save devth/77067d61b7b0922bf6ec 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
(def ^:dynamic *foo* nil) | |
(binding [*foo* 1] | |
(prn *foo*) ;;=> 1 | |
(future (prn *foo*)) ;;=> 1 | |
(.start (Thread. | |
(fn [] (print *foo*) ;;=> nil | |
)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment