-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[expr.prim.lambda.general] Added missing definition for the term "lambda". #6625
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for the commit message, see https://github.com/cplusplus/draft/wiki/How-to-submit-an-editorial-issue#regardless.
Do you want an amended commit, or should I just change the PR title? |
It'd be easier on the editors if the commit message was right from the start. |
…bda". Co-authored-by: Johel Ernesto Guerrero Peña <[email protected]>
Updated. |
Hm... I'm not too fond of splitting up "generic lambda" into "lambda is generic"; I think we use "generic lambda" (in this order) whenever we us that term. What's the count on plain "lambda" that we would need to turn into "lambda-expression"? I understand that using "lambda-expression" on one hand and "generic lambda" on the other is a bit non-symmetric in phrasing, but that feels like the lesser evil right now. |
Here are the cases I could find:
Some of these can readily be replaced with lambda-expression, but others feel a little bit awkward (e.g. "non-generic lambda"). Some of these uses appear to refer to the closure type rather than the lambda-expression itself. |
CWG discussion: please reword all the instances as discussed. |
The unadorned term "lambda" is used interchangeably with lambda-expression in a few places, but is never actually defined. The term "generic lambda" is defined in terms of "lambda". Adding the missing definition seemed like the simplest approach to resolving the issue.