Created
May 6, 2014 17:35
-
-
Save 198d/6a5a7ad95453264b5012 to your computer and use it in GitHub Desktop.
defmacro/g!
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-g [&rest args] (with-gensyms [sym] `(let [[~sym 10]] (print ~sym)))) | |
=> (with-g) | |
10 | |
=> (defmacro/g! g-bang [&rest args] `(let [[~g!sym 10]] (print ~g!sym))) | |
File "<input>", line 1, column 1 | |
(defmacro/g! g-bang [&rest args] `(let [[~g!sym 10]] (print ~g!sym))) | |
^-------------------------------------------------------------------^ | |
HyMacroExpansionError: `defmacro/g!' object has no attribute 'startswith' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment