Skip to content

Instantly share code, notes, and snippets.

@raek
Created February 23, 2011 12:01
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 raek/840340 to your computer and use it in GitHub Desktop.
Save raek/840340 to your computer and use it in GitHub Desktop.
Clojure 1.3.0-alpha2
user=> (defn ^{:dynamic true} *y* [] :default)
#'user/*y*
user=> (defn x [] (*y*))
#'user/x
user=> (x)
:default
user=> (binding [*y* (constantly :rebound)] (x))
:rebound
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment