Infix named args #19072
Replies: 3 comments 1 reply
-
At first I parsed this as an assignment in expression position. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback, which makes me feel supported and less lonely. via discord, an authoritative agree and an authoritative poop emoji: |
Beta Was this translation helpful? Give feedback.
-
Since a discussion is not an issue, it doesn't show a mention of #21565. What was so terrible about this syntax again? It just looks funny; but many legal things look funny, that is what democracy and free speech is all about. An "argument expression" can be an assignment syntactically, which may be a named arg in parens. What's the problem? The reason to deter "multi-arg infix" was that the args "look like a tuple"; similarly, named args look like a named tuple. Anyone can choose to lint that syntax if they wish, but it's not scalac's job. |
Beta Was this translation helpful? Give feedback.
-
This is weird:
Is no one opinionated about infix? I mean to ask, isn't anyone?
Beta Was this translation helpful? Give feedback.
All reactions