Skip to content

Instantly share code, notes, and snippets.

@198d
Created May 6, 2014 17:35
Show Gist options
  • Save 198d/6a5a7ad95453264b5012 to your computer and use it in GitHub Desktop.
Save 198d/6a5a7ad95453264b5012 to your computer and use it in GitHub Desktop.
defmacro/g!
=> (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