-
-
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
spaces in comprehensions #27400
Comments
Though intention is that so, I think it is ambiguous with infix |
Another one I've noticed: julia> [1 +
x for x in 1:4]
ERROR: syntax: invalid comprehension syntax See also #9494 |
The issue here is hcat syntax, where
seems like it could maybe be made to work. As a footnote, since it's come up in the past, note that
is never going to work. Since we don't require |
The case with the line break was fixed by #20265. The other case I don't think can be fixed. |
On both 0.7.0-alpha and 0.6.3:
I think the intention of
[1 +1 for i in 1:2]
is clearly1+1
, not[1, +1]
, unless there are some other confusing situations?The text was updated successfully, but these errors were encountered: