Skip to content

Clarify use of "discard" and "discard parameter" - #1862

Open
BillWagner wants to merge 1 commit into
dotnet:draft-v9from
BillWagner:consistent-discard-naming
Open

BillWagner wants to merge 1 commit into
dotnet:draft-v9from
BillWagner:consistent-discard-naming

Conversation

@BillWagner

Copy link
Copy Markdown
Member

Follow up to the committee review of #1464 on lambda discards.

Use the term "discard" in almost all discussion of discard. Reserve "discard parameter" to specifically apply to using _ as a discard parameter on an anonymous function.

I think this is small enough we can review and merge between meetings.

Follow up to the committee review of dotnet#1464 on lambda discards.
Comment on lines +572 to +573
- It can denote a discard ([§9.2.9.2](variables.md#9292-discards)), or
- It can denote a discard parameter of an anonymous function ([§12.21.2](expressions.md#12212-anonymous-function-signatures)).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was ambivalent about this change. I made it because I wanted to link to both sections. I'm happy reverting this change.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant