~/talk

“Declarative Control Flow"

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

Argues that exception cleanup becomes declarative by generalizing Scope Guard into three primitives and using the exception-count API to detect failures. Implements lightweight wrappers around std::uncaught_exceptions and exposes scope_exit, scope_fail, scope_success semantics so code states cleanup goals instead of nesting try/catch or inventing tiny RAII types. Shows transactional file-copy/move examples, points to Folly and MSVC implementations already working, and reports the facility is standardized for C++17, yielding flatter, smaller, and more maintainable error-handling code.

AI-written summary · about

  1. 0:00Introduction and context
  2. 6:01Transactional file copying
  3. 10:12Transactional file moving
  4. 13:22Control flow issues
  5. 15:12Declarative programming
  6. 17:22Scope guard basics
  7. 20:15Macro implementation
  8. 23:31Advanced scope management
  9. 25:58C++17 and exceptions
  10. 29:15Handling exception counts
  11. 32:40Conditional execution
  12. 35:55Scope fail macro
  13. 37:23Refactoring examples
  14. 38:40Sequence dependencies
  15. 41:59Guard types and use cases
  16. 44:01Performance and patterns
  17. 49:40Summary of benefits
  18. 52:34Library support and Q&A
~/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.