Skip to content

Instantly share code, notes, and snippets.

@Chouser
Created May 7, 2015 15:38
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 Chouser/78bc654a9233c42e6c3f to your computer and use it in GitHub Desktop.
Save Chouser/78bc654a9233c42e6c3f to your computer and use it in GitHub Desktop.
Clojure 1.7.0-beta2
;; ns-unmap doesn't fully take effect on uses of the unmapped var in the same compilation unit:
user=> (let [] (ns-unmap 'user 'first) first)
#object[clojure.core$first__4107 0x4b8729ff "clojure.core$first__4107@4b8729ff"]
;; ...but has taken effect by the time the next top level form is compiled:
user=> first
CompilerException java.lang.RuntimeException: Unable to resolve symbol: first in this context, compiling:(NO_SOURCE_PATH:0:0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment