Is it possible to add or improve the syntax for consecutively defined variables and consecutive assignments? #20452
fenginsc
started this conversation in
Feature Requests
Replies: 1 comment
-
If this question were posted on discussions, the answer might be SIP-59 scala/improvement-proposals#73 which has a draft impl. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current syntax for defining variables/constants doesn't work very well, you either have to write multiple lines or you have to use the deconstruction syntax:
Can it be written in one of the following forms?
The assignment syntax doesn't work very well either, you can only assign one value at a time:
Can it be written in one of the following forms?
And the continuous assignment syntax is not currently supported, currently only:
It would be great to support this writing!
thanks!
Beta Was this translation helpful? Give feedback.
All reactions