C++26 Locks in Contracts—Even as Stroustrup Calls Them a Mess
Everyone figured C++26 would trim the fat after years of bloat. Instead, it stuffs in Contracts—a feature its own creator slams as unminimal and unusable.
theAIcatchupApr 07, 20264 min read
⚡ Key Takeaways
C++26 approved with Contracts despite Stroustrup's strong opposition, 114-12 vote.𝕏
Feature promises safer code via preconditions/postconditions, but criticized as complex and unviable.𝕏
Other wins: compile-time reflection, memory safety improvements, std::execution framework.𝕏
The 60-Second TL;DR
C++26 approved with Contracts despite Stroustrup's strong opposition, 114-12 vote.
Feature promises safer code via preconditions/postconditions, but criticized as complex and unviable.
Other wins: compile-time reflection, memory safety improvements, std::execution framework.