Named deconstruction #1895
Replies: 3 comments
-
Actually you can write it already: foreach (var (px, py, pz) in points) { } |
Beta Was this translation helpful? Give feedback.
-
@hez2010 but you can not write |
Beta Was this translation helpful? Give feedback.
-
I always love when the existing syntax is shorter than purposed syntax. And you should really try a better example, because if someone is order |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Deconstruction uses positions syntax only and has syntax for skipping certain positions.
I suggest to add a named deconstruction syntax.
Named deconstruction enable you to specify correct property for a variable by associating the variable name with the property's name rather than with the property's position in deconstruction.
Also it allow to skip some properties in deconstruction.
Beta Was this translation helpful? Give feedback.
All reactions