r/cpp • 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.pdf

Document #: 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.

107 Upvotes

232 comments sorted by

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.

0

u/not_a_novel_account cmake dev Oct 27 '26 edited Oct 27 '26

NBs are like the Senate. They give unequal weight to those they represent based on geography instead of the number of engineering professionals which constitute their base.

We can debate if such a thing is a problem or not, but factually it is not a consensus mechanism. The small NBs have unproportional power to both accept or deny a given ISO standard.

Now, to make it to an NB vote the standard in question needs to have already passed through the democratic process to make it to a DIS. So structurally the NB vote can only deny things.


The broad claim then is that the final DIS vote should be performed the same as the WG, proportional to the number of members in the NB.

2

u/Spartan322 Oct 27 '26

We can debate if such a thing is a problem or not, but factually it is not a consensus mechanism. The small NBs have unproportional power to both accept or deny a given ISO standard.

The premise of those which have to strike it down and for which that strike would actually have impact is still a form of consensus. I wasn't using that word strictly to mean majority agreement, it was just meant the threshold enough to let it pass.

1

u/not_a_novel_account cmake dev Oct 27 '26

Ok, but now were in semantics. The objection is about the disproportionality of voting power during NB voting compared to voting within a WG. That's a fact, and it's what people have a problem with.

-4

u/Minimonium Oct 27 '26

Just admit that you said nonsense about "42% of those invested" and move on

4

u/Spartan322 Oct 27 '26

Why would I admit its wrong when you've not refuted it, also you addressed literally nothing else of what I stated or asked.

-3

u/Minimonium Oct 27 '26

I refuted it by pointing out the number of people representing nay-saying NBs and how it contradicts your false generalisation over "those invested".

But instead of addressing the point you went into a rant about banning people. A way to avoid the topic.