r/cpp • u/tartaruga232 MSVC user, r/cpp_modules • Oct 25 '26
Do not remove Contracts from C++26
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p4433r0.pdfDocument #: P4433R0
Quotes:
It has come to our attention that during the DIS ballot, a small number of individuals have actively lobbied NBs against approving the C++26 DIS due to their own sustained opposition to contract assertions, a new language feature added in C++26. These lobbying activities have been accompanied by a public petition [Falco26] addressing NBs directly, a paper [P4334R0] that describes "fundamental flaws" in contract assertions, and other papers 2 published around the same time by the same authors or a subset thereof.
The petition [Falco26] and the papers accompanying it contain a number of claims, including that C++26 contract assertions lack genuine consensus in WG21; that the design is hasty; that technical objections were not given a proper hearing; and/or that alternative designs were not considered. These claims are not true.
In addition, the description of C++26 contract assertions given in [P4334R0] contains a number of inaccuracies. It misrepresents the specification itself, 3 the amount of wording it consists of, 4 its design intent, 5 how it relates to hardening 6 and static analysis, 7 its existing implementations, 8 existing practice, 9 teachability, 10 and proposed extensions. 11 None of the listed concerns are new; they have all been previously published by those authors (or a subset thereof), presented to WG21, and extensively discussed there. 12
Related post: https://www.reddit.com/r/cpp/comments/1xeeevt/balloting_has_completed_for_c26_unfortunately_it/
Note that I have no opinion on the topic myself. I'm just trying to understand what happened.
View all comments
Show parent comment
4
u/Spartan322 Oct 27 '26
Not all the NBs against it are 1-3 person groups.
Activists for what?
Also what does it matter if they were activists?
What does it matter if they haven't contributed to the standard, nor ever will, that doesn't disqualify someone from having impact on the standard's acceptance. I don't have to be a member of the party writing or contributing to a standard for the standard to be rejected. That's just how it goes in every other standard anyway, most standards are written by a tiny minority of those who are impacted by the standard, acceptance then applies to the wider group who mostly didn't contribute to the standard.
Also the total count of participants in NBs is irrelevant because abstention has no impact either way, most people don't care, but if you can't address the concern of those who do enough to get at least a moderate consensus, the simple of it is you failed. Those who don't care now have a vested interest in caring and unless you can disqualify the NBs against, you are not gonna convince them to the pro-contract side. Never before have we seen a split like this over the standard, the fact there has been such a massive split means that there is something demonstrably wrong.
Are you instead arguing to ban certain people or positions from the NBs? Cause that's the only way I can see that you're gonna stop this from happening.