-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Parsing issue for composed return value with =>
#25391
Comments
The reason for this is to parse |
=>
That change would only break |
I had the idea, that |
I expected the same return type for both functions, but:
It looks like the comma "operator" in
a,b
has precedence before the=>
operator.IMO that is not to be expected and a parsing issue, because the consequence is, that parens
around an expression can change the meaning.
With my restricted insight, I cannot imagine a reason for comma needing a high precedence, when
it appears outside a parenthesized list.
PS: its the same with assignments
x1 = 0:-1, ""=>""
etc.The text was updated successfully, but these errors were encountered: