~/talk

Contracts for Dependable C++

Talkat CppCon 2015 · 2015-09-21..09-25· [software-architecture]
links:none on file
slides:none on file

Language-level contracts let code state preconditions and postconditions so compilers and static/dynamic analyzers can enforce interfaces rather than rely on comments. The proposal uses an attribute-based syntax (compatible with current C++ attributes) and complements the existing GSL expect macro, gives clear semantics (evaluate args, check precondition, run body, check postcondition), allows runtime abort or throw on violation, permits compile-time proofs to elide checks, and is under implementation for Microsoft’s C++14 updates.

AI-written summary · about

  1. 0:00Introduction to contracts
  2. 3:27Defining contract clauses
  3. 7:35Preconditions and invariants
  4. 10:33Practical precondition usage
  5. 16:38Postconditions explained
  6. 19:41Breach of contract consequences
  7. 22:00Goals for C++ contracts
  8. 24:44Design principles
  9. 27:05Syntax and examples
  10. 30:31Contract semantics
  11. 32:51Validation and enforcement
  12. 35:09Implementation and scaling
  13. 40:51Q&A and final discussion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.