Created
November 7, 2017 23:44
-
-
Save sundarj/b70992a06f3e987591df7f724a8c96a5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
boot.user=> (def foo 2) | |
#'boot.user/foo | |
boot.user=> (def ^:private bar 4) | |
#'boot.user/bar | |
boot.user=> (def namespace-qualified-keyword ::yo) | |
#'boot.user/namespace-qualified-keyword | |
boot.user=> (def namespace-qualified-symbol `yo) | |
#'boot.user/namespace-qualified-symbol | |
boot.user=> (in-ns 'penis) | |
#object[clojure.lang.Namespace 0x5226716e "penis"] | |
penis=> (clojure.core/require 'boot.user) | |
nil | |
penis=> boot.user/foo | |
2 | |
penis=> boot.user/bar | |
penis=> java.lang.IllegalStateException: var: boot.user/bar is not public | |
clojure.lang.Compiler$CompilerException: java.lang.IllegalStateException: var: boot.user/bar is not public, compiling:(null:7:1) | |
penis=> (clojure.core/deref (var boot.user/bar)) ;yolo :^) | |
4 | |
penis=> boot.user/namespace-qualified-keyword | |
:boot.user/yo | |
penis=> boot.user/namespace-qualified-symbol | |
boot.user/yo | |
penis=> (require ['clojure.core :as 'core]) | |
java.lang.RuntimeException: Unable to resolve symbol: require in this context | |
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: require in this context, compiling:(null:1:1) | |
penis=> (clojure.core/require ['clojure.core :as 'core]) | |
nil | |
penis=> clojure.core/map | |
#object[clojure.core$map 0x3e2e9e0 "clojure.core$map@3e2e9e0"] | |
penis=> core/map | |
#object[clojure.core$map 0x3e2e9e0 "clojure.core$map@3e2e9e0"] | |
penis=> map | |
java.lang.RuntimeException: Unable to resolve symbol: map in this context | |
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: map in this context, compiling:(null:7:1) | |
penis=> (use 'clojure.core) | |
java.lang.RuntimeException: Unable to resolve symbol: use in this context | |
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: use in this context, compiling:(null:1:1) | |
penis=> (core/use 'clojure.core) | |
nil | |
penis=> map | |
#object[clojure.core$map 0x3e2e9e0 "clojure.core$map@3e2e9e0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment