Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created February 17, 2014 14:53
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 borkdude/9052017 to your computer and use it in GitHub Desktop.
Save borkdude/9052017 to your computer and use it in GitHub Desktop.
user=> (defmacro ^:private my-macaroni []
#_=> `(+ 1 2 3))
#'user/my-macaroni
user=> (my-macaroni)
6
user=> (ns other-user)
nil
other-user=> (user/my-macaroni)
IllegalStateException var: #'user/my-macaroni is not public clojure.lang.Compiler.isMacro (Compiler.java:6412)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment