-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Macros called with parens can have arguments parsed as keywords #7669
Comments
Ah, that's an interesting corner case. The macro parser with parens just reuses the function call parsing logic, which has occasionally caused some issues like this. |
Yeah we probably need a macro parsing context to resolve Function / macro differences. |
I don't think it's super surprising that this parses like a function call. |
It's not super-surprising, but I think there's a temptation to think of |
I recently ran into this, trying to implement someting like the CL macro (defmacro invisible (&body body)
`(progn ,@body (values)) in Julia as macro invisible(expressions...)
quote
$(expressions...)
nothing
end
end and got
It would be great if the two forms parsed the same way. |
Ref #12021; |
fix #7669, always parse assignments the same inside macro calls
…er give macros keywords
…er give macros keywords (#38)
Not sure whether this is intended, but it did surprise me:
Using 0.3.0-rc1.
The text was updated successfully, but these errors were encountered: