-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Multiarg infix is not supported in op= rewrite #14418
Comments
#4311 was put on hold and it's not clear to me what the way forward is. The Scala 2 warning about multiarg infix was annoying enough that it had to be put under -Xlint, so it seems we can't just adopt it, much less promote it to an error. And since |
"it's just syntax". Worth adding that Conversely, Scala 3 is opinionated. It could error under |
This issue was picked for the Issue Spree No. 24 of 29 November 2022 which takes place in a week from now. @mbovel will be working on it. If you have any insight into the issue or guidance on how to fix it, please leave it here. |
Worked on this today during the issue spree with @Billal-B and @odd. This issue seems to be linked to #9159. We should check if untupling for infix types was working before. From today's explorations, it seems like the Is not preserved until it is read at: Could it be due to an |
If I understood correctly, multi-parameter infix calls will be deprecated. Therefore, is it relevant to fix this issue? |
That is amazing information, in the sense that my previous understanding was that deprecation was premature and that my previous understanding before that was mistaken. I agree that it's not worth investing effort into such fixes unless they are an important pain point. Smooth migrations are nice in the sense of "would be nice to have." There are many issues in the backlog. Although it's useful to work on a ticket just for educational value, it's more useful to work on a ticket with a useful outcome. |
Compiler version
3.1.0
Minimized code
Output
Expectation
If the compiler accepts multiarg infix (and maybe it should not), it should accept multiarg assignment syntax.
Scala 2
-Xlint
saysand fails to warn for assignment syntax.
Reported on discord:
The text was updated successfully, but these errors were encountered: