You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [expr.rell]p3, we implicitly introduce a relation called "compares greater". However, it's confusing to use this term, since there are other cases that might /also/ compare greater in the colloquial sense, if they fall into the ~(p compares greater than q) /\ ~(p compares greater than p) case. It's also easy to misread p3 as actually specifying the result of the comparison operators rather than just defining an intermediate term.
How about:
Changing the introductory sentence to "The result of comparing unequal pointers to elements is specified in terms of a "definitely compares greater" relation, defined as follows:"
Replace "compares greater" with "definitely compares greater" throughout.
Likewise in [expr.eq]p2 and p3 we should make it clear that we're just defining a "compares equal" relation, not actually defining the result of the operators. This is confounded by p3.3 and p3.4 actually trying to define the result of the the operators ("the result is unspecified"). As per the [expr.rel] changes, we should change the introductory sentence to clarify this, rename the relations to "definitely compare equal" and "definitely compare unequal", and change the "the result is unspecified" to "neither definitely compare equal nor definitely compare unequal".
The text was updated successfully, but these errors were encountered:
I like changing the introductory sentence, actually introducing the term we define here. (Is this local enough that it shouldn't be an italicized term? On the other hand, putting it into the index might be useful in this case.) I also like avoiding "unspecified" in [expr.eq] p3.3 and p3.4.
I'm less enthused about the "definitely" prefix. Maybe change the intro sentence to use "an auxiliary relation ... defined as follows"? After all, what we want is point people to the fact that this relation is not directly giving the result of the operators. I feel "definitely" doesn't go far enough in that direction.
Editorial meeting consensus:
"is defined in terms of a partial order consistent with the following rules:" and use "is required to compare greater" in the definition.
In [expr.rell]p3, we implicitly introduce a relation called "compares greater". However, it's confusing to use this term, since there are other cases that might /also/ compare greater in the colloquial sense, if they fall into the ~(p compares greater than q) /\ ~(p compares greater than p) case. It's also easy to misread p3 as actually specifying the result of the comparison operators rather than just defining an intermediate term.
How about:
Likewise in [expr.eq]p2 and p3 we should make it clear that we're just defining a "compares equal" relation, not actually defining the result of the operators. This is confounded by p3.3 and p3.4 actually trying to define the result of the the operators ("the result is unspecified"). As per the [expr.rel] changes, we should change the introductory sentence to clarify this, rename the relations to "definitely compare equal" and "definitely compare unequal", and change the "the result is unspecified" to "neither definitely compare equal nor definitely compare unequal".
The text was updated successfully, but these errors were encountered: