Skip to content

discards, deconstruction, and assignment#1730

Open
BillWagner wants to merge 1 commit into
dotnet:draft-v8from
BillWagner:assignment-and-discards
Open

discards, deconstruction, and assignment#1730
BillWagner wants to merge 1 commit into
dotnet:draft-v8from
BillWagner:assignment-and-discards

Conversation

@BillWagner

Copy link
Copy Markdown
Member

Fixes #1630

Modify the language for deconstructing assignment (and the related foreach expansion to decouple the number of variables assigned from the classification as a deconstruction. It should be the presence of deconstructor_elements, which can be either variable_references or discard_tokens.

Fixes dotnet#1630

Modify the language for deconstructing assignment (and the related `foreach` expansion to decouple the number of variables assigned from the classification as a deconstruction. It should be the presence of *deconstructor_element*s, which can be either *variable_reference*s or *discard_token*s.
@BillWagner BillWagner requested a review from Nigel-Ecma July 13, 2026 19:10
@BillWagner BillWagner added the meeting: priority Review before meeting. Merge, merge with issues, or reject at the next TC49-TC2 meeting label Jul 13, 2026

@jskeet jskeet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks Bill!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meeting: priority Review before meeting. Merge, merge with issues, or reject at the next TC49-TC2 meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assignment and discards

2 participants