Google AI Professional Certificate - Learn AI Skills That Get You Hired
Learn Excel & Financial Modeling the Way Finance Teams Actually Use Them
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Explore the upcoming C++26 contracts feature in this comprehensive conference talk by Herb Sutter from CppCon 2025. Discover why defensive programming is essential for functional and memory safety, and learn how C++26 contracts significantly improve upon traditional C assert macros through declaration-based syntax, release build compatibility, and superior language support. Master the essential best practices for effective contract usage, including keeping compound conditions together, avoiding side effects, and understanding the trade-offs of throwing violation handlers. Examine why contracts are both viable for production environments and minimal yet complete for large-scale implementation, with systematic analysis of each necessary component. Gain insights into future contract evolution including virtual function support and groups/labels functionality, while addressing common myths and misconceptions through a detailed FAQ review. Led by Herb Sutter, technical fellow at Citadel Securities, ISO C++ committee chair, and designer of multiple Standard C++ features, this talk provides authoritative guidance on leveraging contracts to simplify and strengthen C++ code.
Syllabus
The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter
Taught by
CppCon