True! But from what I understand of the way symbol-macrolet works, it's
not possible to do one without the other. symbol-macrolet actually looks
for only symbols in the forms you pass it after the let bindings; it won't
traverse inside any quoted forms. It also takes care not to override the
sym
Hi Hunter,
however, in this way you are expanding the application of the macro
"symbol-macrolet" (which is itself a macro), not just the symbol macro "b":
(pprint (mexpand-1 '(symbol-macrolet [b (+ 1 2)] b ["something" "else"])))
;; (do (+ 1 2) ["something" "else"])
;; nil
cheers,
Gianluca
On
This worked for me (after some experimentation):
(pprint (mexpand-1 '(symbol-macrolet [b (+ 1 2)] b)))
;; (do (+ 1 2))
;; nil
Cheers,
H
On Saturday, 5 December 2015 07:45:38 UTC, Ritchie Cai wrote:
>
> I'm not sure how to print a macroexpand on macros that defined in macrolet
> or symbol-ma