-
-
Save cemerick/1301675 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
;; no exception when declare/defn are top-level (unsurprisingly) | |
=> (list | |
(declare ^:dynamic p) | |
(defn q [] @p)) | |
(#'user/p #'user/q) | |
=> (binding [p (atom 10)] | |
(q)) | |
#<ClassCastException java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to clojure.lang.IDeref> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment