Skip to content

Improve sentence structures by removing colons#9217

Merged
tkoeppe merged 2 commits into
cplusplus:mainfrom
tkoeppe:reqpunct
Jul 20, 2026
Merged

Improve sentence structures by removing colons#9217
tkoeppe merged 2 commits into
cplusplus:mainfrom
tkoeppe:reqpunct

Conversation

@tkoeppe

@tkoeppe tkoeppe commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

We are dealing with long, complete sentences, where it does not seem appropriate to separate parts with colons.

I suggest various rewrites that incorporate the complex object of the sentence in a more natural way.

In [ranges], I would also like to change "for each" to "for all" in the description of the argument of the "logical AND".

…wing expression:".

Usually, a colon concludes a complete sentence and is followed by some
isolated expression or another complete sentence. In these cases, we
have one long sentence with subclauses.
@tkoeppe
tkoeppe requested review from jensmaurer and jwakely July 20, 2026 10:50
A colon usually ends a complete sentence and is followed either by an
isolated expression or another sentence. Here, by contrast, we have a
complex object, which should not be seperated like that. Additionally,
the presentation seems to work better as a long sentence with the
expressions appearing in codeblocks, instead of as an itemization.

Morever, the quantification should say "expressions ... for _all_
<index>", not "for each", since it is the collection of all
expressions that forms the argument of the "logical and". (This is
opposed to, say, making a separate statement about each element of
the collection.)
@tkoeppe

tkoeppe commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

I made a further change to a) include another case I had missed, and b) to replace the itemizations with codeblocks:

image

I think that works a lot better and also avoids the need for awkward manual linebreaks.

@tkoeppe
tkoeppe merged commit 6935441 into cplusplus:main Jul 20, 2026
2 checks passed
@tkoeppe
tkoeppe deleted the reqpunct branch July 20, 2026 17:10
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.

3 participants