-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
compiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)
Description
Currently
macro foo(args...)
args2 = do_something(args)
quote
@bar($(args2...))
end
end
macroexpand(:(@foo arg1 arg2))
expands all the macros in the expression recursively.
This makes debugging difficult if the expansion of the inner macro is a complicated expression.
It would be nice to have an alternative, possibly either called macroexpand1
, or macroexpand(expr, recursive=false)
, that would only expand the first level, similarly to COMMON-LISP:MACROEXPAND-1.
simonbyrne and jw3126
Metadata
Metadata
Assignees
Labels
compiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)