Spread operator in collection read-only property initialization #8336
Unanswered
Arithmomaniac
asked this question in
Language Ideas
Replies: 2 comments 2 replies
-
This could be very useful for |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose the type
Using collection read-only property initialization, we can do this:
But suppose I don't know which values I want at compile time. Then I would be forced to do as follows:
I propose that the spread operator be allowed here to do as follows:
Beta Was this translation helpful? Give feedback.
All reactions