Skip to content
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

Avoid incorrect sentence parsing option on types #7450

Merged

Conversation

mrussoLuxoft
Copy link
Contributor

@mrussoLuxoft mrussoLuxoft commented Nov 27, 2024

This PR is related to the Issue #7453 proposing multiple changes to clarify the text in [dcl.spec.auto.general]
However, a PR has been created for each specific change.

In [dcl.spec.auto.general]-p2, the verbal form
The type of a parameter-declaration of a function declaration, lambda-expression, or template-
parameter ...

may be ambiguous in the sense that it may be interpreted both as the type of any of three things (incorrect) or the type of a parameter of any of three things (correct).
In a discussion on std-discussion, it was highlighted that the former interpretation does not make sense as a lambda expression has never an explicit type, however it was still agreed that the verbal syntax should be improved (https://lists.isocpp.org/std-discussion/2024/11/2724.php).

source/declarations.tex Outdated Show resolved Hide resolved
@jensmaurer jensmaurer added the changes requested Changes to the wording or approach have been requested and not yet applied. label Nov 27, 2024
@mrussoLuxoft mrussoLuxoft force-pushed the clarify__dcl_spec_auto_general__1 branch from 66896cf to a0d3748 Compare November 27, 2024 23:32
@jensmaurer jensmaurer removed the changes requested Changes to the wording or approach have been requested and not yet applied. label Nov 28, 2024
@jensmaurer
Copy link
Member

Please fix the commit title per https://github.com/cplusplus/draft/wiki/Commit-message-format
and force-push.

@mrussoLuxoft mrussoLuxoft force-pushed the clarify__dcl_spec_auto_general__1 branch 2 times, most recently from 789b163 to 63cef78 Compare November 28, 2024 01:54
@mrussoLuxoft
Copy link
Contributor Author

commit message amended

source/declarations.tex Outdated Show resolved Hide resolved
@mrussoLuxoft mrussoLuxoft force-pushed the clarify__dcl_spec_auto_general__1 branch from 63cef78 to b357f32 Compare November 28, 2024 14:58
source/declarations.tex Outdated Show resolved Hide resolved
Avoid incorrect sentence parsing option on parameter type.
Text may be ambiguous in the sense that it may be interpreted both as the type of any of three things (incorrect) or the type of a parameter of any of three things (correct).
Despite the former interpretation does not make sense as a lambda expression has never an explicit type, it would still be useful to avoid ambiguity in sentence parsing.

Signed-off-by: Mauro Russo <[email protected]>
@mrussoLuxoft mrussoLuxoft force-pushed the clarify__dcl_spec_auto_general__1 branch from b357f32 to 8933940 Compare November 28, 2024 17:56
@jensmaurer jensmaurer merged commit 219b959 into cplusplus:main Nov 30, 2024
2 checks passed
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.

2 participants