Created
November 11, 2018 23:34
-
-
Save mfikes/42063f0840c3f99b0ddfac141c130bac 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
Clojure 1.10.0-beta5 | |
user=> (ns foo.core) | |
nil | |
foo.core=> (def ^:private a 3) | |
#'foo.core/a | |
foo.core=> (defmacro access-a [] `(+ foo.core/a 3)) | |
#'foo.core/access-a | |
foo.core=> (access-a) | |
6 | |
foo.core=> (in-ns 'user) | |
#object[clojure.lang.Namespace 0x1506f20f "user"] | |
user=> (foo.core/access-a) | |
Syntax error compiling at (REPL:1:1). | |
var: foo.core/a is not public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment