r/cpp • • 5d ago

InsideC++26481, Always Enforce 26

https://youtu.be/zZ46XRE1OmE

Some casual chat about recent developments in C++

0 Upvotes

7 comments sorted by

15

u/othellothewise 5d ago

Wow, even the first topic discussed (the plenary polls) was inaccurate. Many people voted for the first option, reluctantly, because they thought it was only the way forward, not because they actually didn't want contracts in the 26 standard. Yet the discussion tries to spin that is contracts having less support than previous plenary votes.

12

u/foonathan 4d ago

See also how the vote to have no C++26 at all had higher consensus than the vote to have C++26 without contracts.

Many people just wanted to get on with it and either appease the NBs by pulling contracts out of C++26 (keeping them unchanged in the draft for C++29, mind you) or by making it moot by cancelling C++26 all together.

Also note that the vote was preceded by multiple implementers saying that regardless of outcome of the votes, compilers will ship -std=c++26 with contracts in them.

14

u/azswcowboy 5d ago

Yes that’s BS frankly. This is one of the NBs against contracts so keep that in mind. The correct interpretation of the results here is that there wasn’t consensus to kill 26 and so the committee went forward with an attempt to address the NB comments to improve consensus. We will see if that succeeds at the NB level. If it doesn’t, 26 will be cancelled and contracts will still be in 29. Also omitted is the fact that the convenor throw down was that the default is to cancel 26 - prove me wrong.

3

u/Dragdu 4d ago

That's our Harald

1

u/13steinj 5d ago

I don't think it is as inaccurate as you're claiming, however one's perception alters how people take it I think.

I think a key thing is that "Consensus for shipping set 'C++26'" and "Consensus for shipping set 'C++26'' = 'C++26' \ {Contracts}" are not mutually exclusive consensuses.

-7

u/_a4z 4d ago

As far as I remember, the numbers seem correct.

11

u/friedkeenan 4d ago

I'm not who you're replying to, but I don't think their issue is that the numbers are inaccurate, but rather the interpretation of them.

The vote isn't asking "Do you think C++26 contracts are a technically poor feature", it's whether to remove contracts in response to the NBs voting down C++26 because of them. And so there's a mixing of multiple factions in the vote tally, namely those who are against C++26 contracts because they think they're poorly designed, and those who want to remove contracts from C++26 because it appears as the most politically feasible option to get C++26 past the NBs, regardless of any technical merit.

It might still be possible to tease out the size of each faction, but I don't think one can tell that from just the voting results alone, which is what is attempted in the video.