~/talk

Option(al) is not a failure

Talkat Meeting C++ 2018 · 2018-11-15..11-17· [rust]
slides:none on file

Argues that ADT-style error handling actually works: use std::optional for marked propagation, move to std::expected (or Boost Outcome) for richer errors, and surface composition with a pipeline/operator so sequences stay linear. Presents a language proposal (static/froze-like throws + try expression) for zero overhead deterministic exceptions. Cites benchmarks showing exceptions cost 2–3 orders of magnitude more than error returns and a survey where ~52% of projects ban exceptions; examples and library prototypes demonstrate much cleaner composition and feasible performance.

AI-written summary · about

  1. 0:00Intro
  2. 3:18What is an error
  3. 4:48Worst types of errors
  4. 5:44Happy path vs sad path
  5. 7:44There should never happen
  6. 10:10Logic errors
  7. 13:56Error returns
  8. 14:53Contracts
  9. 16:45Scorecards
  10. 18:51Error code based strategies
  11. 25:52Exceptions
  12. 28:45Directory errors
  13. 29:10Cost of exceptions
  14. 30:25Primary error handling
  15. 31:19ADT based error handling
  16. 38:43Option unexpected
  17. 39:23My take
  18. 43:43Error handling
  19. 50:21Zero overhead deterministic exceptions
  20. 51:09Wrapup
  21. 51:41Checked Exceptions
~/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.