Article 79SC2 C++26 Stumbles at Finish Line Over Contracts Dispute

C++26 Stumbles at Finish Line Over Contracts Dispute

by
hubie
from SoylentNews on (#79SC2)

"Arthur T Knackerbracket" writes:

ISO working group faces a fight over runtime checks, complexity, and the language's release timetable:

The next version of the C++ programming language may be delayed at the last minute due to a dispute over a security-enhancing Contracts feature.

Contracts have deeply split C++ technical maintainers. One group backs the C++ creator Bjarne Stroustrup, who is against the technology in its present form in grounds it was hastily implemented. But others are eager to see Contracts implemented, even arguing the tech's detractors are poisoning the C++ development process itself.

The disagreement boiled over just before a vote to ratify the new version of the language.

In October, the Draft International Standard (DIS) of C++26 failed its ISO ballot - the next-to-last stage in the International Organization for Standardization's approval process during which a standard's technical details are formally ratified by a set of national standards bodies.

The ballot saw 13 votes cast in favor, 9 against, and 12 abstentions, failing to meet the ISO requirement of having no more than 25 percent negative votes. Contracts was the major sticking point for those voting nay.

Contracts allow developers to add preconditions and postconditions to code, as well as assertions that check whether specified conditions hold. Such checks can help catch programming errors that might otherwise lead to undefined behavior.

Design by Contract has long been a feature of languages like Ada and Eiffel.

Developers have proposed adding Contracts to C++ for at least a decade, after when they were abruptly yanked from C++20 owing to concerns over dangerous defaults.

But Stroustrup roasted the revised proposal (P2900) that made it into C++26.

"The P2900 contracts and extensions aim to change the nature of C++ and are an existentialthreat to C++, adding complexity and bloat," Stroustrup and his colleagues wrote in a paperlast August. They noted that the implementation is messy, outdated, not sufficiently tested, and could be more effectively implemented as a library.

Read more of this story at SoylentNews.

External Content
Source RSS or Atom Feed
Feed Location https://soylentnews.org/index.rss
Feed Title SoylentNews
Feed Link https://soylentnews.org/
Feed Copyright Copyright 2014, SoylentNews
Reply 0 comments