Topic

Software Safety

Everything filed under Software Safety, newest first.

Showing 1–1 of 1 article

  • C++26 Contracts: Introduction to Preconditions and Postconditions

    C++ Stories introduces C++26 contracts: pre() and post() on function declarations and contract_assert() inside functions, why they beat assert, the ignore/observe/enforce/quick-enforce evaluation semantics, compiling examples with GCC, const parameters in postconditions, avoiding side effects in predicates, predicate cost, and why contracts are not a replacement for input validation.

    Tutorial · C++ · Programming Languages · Software Safety

    9 min · 2,052 words