C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Discussion: A proposed repeat statement for C++

From: Vinnie Falco <vinnie.falco_at_[hidden]>
Date: Mon, 16 Nov 2026 09:04:36 -0800
On Mon, Nov 16, 2026 at 9:00 AM scbd Gm via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> ...it provides a clearer and more readable way to express our intention...
>
Is there any evidence? Do we have measurements which show frustration at
understanding loops written using the current language constructs?

> ...having a dedicated repeat statement would make the code cleaner, more
> intuitive, and easier to maintain...
>
Same question. How is the code made cleaner? What is the evidence that this
is better than the existing? What are the measurements showing that
maintenance is currently incurring costs which can be avoided with `repeat`?

Making an assertion without evidence, is called "an opinion." There is an
infinite supply of opinions, and a dramatic shortage of evidence. Missing
from your analysis, is the cost. Let's say you are right, that code becomes
"cleaner, more intuitive, and easier to maintain." What about the cost?
Language changes are not free. You need to explain the costs, explain the
benefits, and explain why paying the costs delivers extraordinary value
over leaving it alone. Otherwise, it is not practical to take the proposal
seriously (speaking for myself).

Received on 2026-11-16 17:04:50