Created
October 20, 2011 16:29
-
-
Save slagyr/1301599 to your computer and use it in GitHub Desktop.
Clojure 1.3 bug?
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
(defmacro with [] | |
(let [var-name (with-meta 'something {:dynamic true})] | |
`(do | |
(let [with-component# (atom 42)] | |
(declare ~var-name) | |
with-component#)))) | |
(list | |
(def _with_ (with)) | |
(def _example_ (fn [] @something)) | |
) | |
(with-bindings {#'something _with_} | |
(_example_) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment