Skip to content

Instantly share code, notes, and snippets.

@devth
Last active December 23, 2015 01:00
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 devth/77067d61b7b0922bf6ec to your computer and use it in GitHub Desktop.
Save devth/77067d61b7b0922bf6ec to your computer and use it in GitHub Desktop.
(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