r/cpp • u/SignalDepth6131 • 3d ago
Búzios Trip Report
I wrote up a short report from the Búzios meeting and where things stand with C++26:
https://cppalliance.org/newsmedia/news/b%C3%BAzios-trip-report-what-the-c26-ballot-taught-us/
31
Upvotes
19
u/azswcowboy 3d ago
> alliance broadly aligned with the team working on Profiles, an effort largely viewed as competitive to Contracts
They are cooperative not competitive. Profiles are almost entirely proposed as enhanced static analysis while contracts are runtime checks. In constexpr mode contracts can be a compile time check as well, but lots of stuff isn’t constexpr.
12
u/HowardHinnant 2d ago
Awesome report Harry! I learned new things from your report that I had not read elsewhere.
As for the C++ standardization process, I am reminded of Winston Churchill's comments on democracy:
Our process isn't perfect. But we continually strive to make it more perfect. And I believe it is leading the pack vs the way other languages are evolved.
13
u/AKostur 3d ago
I'm not sure what this is referring to. Assuming this is referring to contracts (like most of the rest of the report refers to): weren't contracts pulled from C++20? And earlier forms than that? So it's been many, many years in the works. And remember that folk in WG21 are all members of their respective National Bodies. So: how much more time are we talking about?
7
u/trad_emark 3d ago
always checked contracts is stupid. the *option* to remove contract checks is the most significant differentiator of contracts from regular control flow, eg. if statements.
2
u/teerre 3d ago
Slightly off topic, but its ridiculous that these committee meetings are often in some tourist paradise