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
P2167R3 Improved Proposed Wording for LWG 2114 (contextually converti… #5986
Conversation
9e23853
to
da94015
Compare
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.
2 issues: (1) widen "Return type" column in tables and (2) fix wording for "each [...] models".
On Nov 19, 2022, at 6:21 AM, Daniel Krügler ***@***.***> wrote:
@Dani-Hub commented on this pull request.
In source/support.tex <#5986 (comment)>:
> @@ -5045,7 +5045,9 @@
Otherwise, \tcode{strong_order(E, F)} if it is a well-formed expression.
\item
Otherwise, if the expressions \tcode{E == F} and \tcode{E < F}
- are both well-formed and convertible to \tcode{bool},
+ are both well-formed and
+ each of \tcode{decltype(E == F)} and \tcode{decltype(E < F)} models
+ \exposconcept{boolean-testable},
Can we please keep the "each" regardless the position? My interpretation of a previous review of @W-E-Brown <https://github.com/W-E-Brown> was that the "each" makes the interpretation unambiguous. But maybe Walter would like to correct my possibly incorrect interpretation of his actually words used?
Daniel has the right idea: The words "each" and "both" are not interchangeable; they mean different things. The use of "both" in this sentence changes the meaning, leading to an incorrect specification, as was discussed before the wording was approved in committee.
|
On Nov 19, 2022, at 7:24 AM, Johel Ernesto Guerrero Peña ***@***.***> wrote:
@JohelEGP commented on this pull request.
In source/support.tex <#5986 (comment)>:
> @@ -5045,7 +5045,9 @@
Otherwise, \tcode{strong_order(E, F)} if it is a well-formed expression.
\item
Otherwise, if the expressions \tcode{E == F} and \tcode{E < F}
- are both well-formed and convertible to \tcode{bool},
+ are both well-formed and
+ each of \tcode{decltype(E == F)} and \tcode{decltype(E < F)} models
+ \exposconcept{boolean-testable},
and change "models" to "model" ("each" can be either plural or singular in this case, but plural sounds better and I think is what is most often used elsewhere in the spec).
According to #5986 (comment) <#5986 (comment)>, when "each" is next to "model", there are 10 occurrences for "model" and 0 for "models".
Sorry, but for such purposes "next to" appears to be an irrelevant grammatical criterion: The sole applicable criterion, according to multiple dictionaries and grammar books, is whether the subject of the clause is singular or plural.
In Daniel's "each of ..." wording formulation, above, "each" is a pronoun used as the subject and is clearly singular, so "models" would be correct.
In the formulation "the expressions ... and ... each ...", the use of "each" is adverbial (meaning "individually"), rather than pronominal; this leaves "the expressions" as the plural subject, so "model" would be correct.
(Those above-cited "10 occurrences" should be probably be similarly audited for correctness via analogous analysis.)
|
The 10 occurrences are of the form " |
Here's the actual output:
|
When using "Each of", "each" is singular (so "models" is correct). See https://www.masterclass.com/articles/is-each-singular-or-plural and similar sites.
They are correct as is. |
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.
It might be nice if we consistently say either "A and B each model C" or "each of A and B models C", but the changes as applied are not incorrect. And as I noted in a comment, changing to "A and B model C" would definitely be incorrect, so maybe best not to fiddle with it!
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.
Oops, I approved, but forgot that there are some actual fixes needed to the plural verbs, as noted by Johel. The other requested changes don't look essential to me though.
da94015
to
9f23463
Compare
…ble to bool) Editorial notes: * Minor consistency fixes around the use of "each". * Some requested wording changes have already been applied as part of LWG 2114. Fixes NB US 073 (C++23 CD).
6c4288b
to
04ad290
Compare
…ble to bool)
Fixes NB US 073 (C++23 CD).
Fixes #5971
Fixes cplusplus/papers#877
Fixes cplusplus/nbballot#504