C++26 Disapproved andreasfertig.com · 283 points · 169 comments · HN thread TL;D...
HN Best 30 @best30
C++26 Disapproved andreasfertig.com · 283 points · 169 comments · HN thread
TL;DR Andreas Fertig, a member of the German C++ delegation to WG21, reports that the ISO DIS ballot for C26 failed on October 23, 2026, the first such failure in C history as far as he knows. A number of national bodies rejected it mainly over the Contracts feature, which they consider not ready, and he argues that the rejection breaks the trust-based consensus process and leaves the next standard at an impasse before the November 16 meeting.
- The C26 DIS ballot failed to reach the required two-thirds majority after a twelve-week vote, the first failed DIS for C that the author knows of (the only other was ISO/IEC DIS 26926, C++/CLI, in 2006, which was halted).
- The main reason given in NB comments is Contracts, which many national bodies consider not yet ready for release.
- Contracts had been added to the C++26 draft by a large majority in WG21 in March 2026, with dissent.
- Options available to ISO include a revised DIS, a return to committee (CD), publishing as a Technical Specification, or cancelling the project; each requires a majority in WG21, which is difficult given the split.
- The author argues NBs have historically only voted against with new information or process errors, and that the 'no' votes rely on old arguments, which he sees as a break from precedent.
- The next WG21 meeting is on November 16, with breaking the deadlock as the top priority; C++29 planning is also affected.
Discussion The thread is large and mostly skeptical of Contracts as delivered, with many commenters arguing it is thin syntactic sugar over assert that adds little beyond concepts, constexpr and existing assertion frameworks. A smaller group defends runtime contracts as a practical improvement over C assert and says the vote was out of proportion to a modest feature. Discussion also drifts into C++'s broader complexity, memory safety versus Rust, ABI stability, build tooling and whether C++ is still relevant. Some commenters repeat claims about Stroustrup's role and about backroom tactics, which others dispute. The mood is argumentative, with frequent pushback on both sides and some frustration with the process.
- Contracts are weak or redundant given concepts and constexpr (many): Several commenters, including ones who write high-reliability C++, say Contracts mostly wraps C asserts and offers less than existing custom assertion frameworks. They worry it will become a legacy dead end once standardized.
- Contracts still provide real value and should not sink the standard (some): Defenders argue runtime invariant checking is a legitimate need that concepts cannot cover, and that a modest feature is not worth blocking the whole C++26 release. Some note the memory-safety parts could be split out.
- The NB rejection is a legitimate use of the veto (some): Commenters argue that a veto in a two-level ISO process is expected, and that calling it a betrayal of trust misreads how the system is designed to work.
- Contracts process was pushed through despite unresolved objections (some): Some commenters say proponents advanced a flawed proposal against persistent technical concerns, citing papers on fundamental flaws, and that the vote reflects a lack of consensus.
- Committee and ISO process is too bureaucratic, C++ is too complex (some): Several argue C++ keeps accumulating complicated features (coroutines, modules, contracts) and that the standards process makes it hard to cut them, with Rust cited as a simpler alternative for new work.
- C++ remains highly relevant for systems and performance work (a few): Commenters point to C++ dominance in existing systems, game engines, embedded and high-performance code, and rank it high in popularity measures, while acknowledging Rust's growth.
Links from the comments
- Introduction to C++26 Contracts with examples, recommended by a commenter as clearer than cppreference.
- Technical reference page on the C++ Contracts language feature.
- Lisa Lippincott's talk on the design of contracts, cited as a critical overview of the feature.
- Reference for the C++26 std::simd proposal, mentioned as major progress on SIMD.
- ISPC, a SIMD compiler cited as an example of higher-level SIMD programming.
#cpp26 #contracts #iso #standardization #cppCommittee #memorySafety