New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macro args have different types in MacroExpand #115
Labels
Comments
Usually there is no need to look inside the arguments passed to a macro - you simply insert them into a larger AST fragment. The difference you observe is because it's not possible to directly insert an |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following basic macro definition
When applied directly in the REPL, I got
When used inside MacroExpand, I got
It makes it hard to write macro code that works both when being applied directly and when inside MacroExpand. Is this an issue or do I have some wrong preconception on how things are supposed to work?
The text was updated successfully, but these errors were encountered: