-
-
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
parser bug: macro calls w/o parens in generator expressions #18650
Comments
Hmm. We want
Currently the comprehension version works by setting the |
Yes, I'm not sure this can be resolved. We use syntax like |
Yes I imagined an But I'm not sure that kind of look ahead is compatible with the structure of the parser? It rather looks like it isn't. |
Looked into this a bit. I think there are basically three options:
We could make
I think (3) is a pretty good option, as it fixes the example in the OP, and there is no real use for writing a |
I guess 3 does sound like the best option, followed by 1. I would be sad to lose |
Potential change in #22943 |
RFC: fix #18650, parsing generator expressions containing macro calls
The text was updated successfully, but these errors were encountered: