~/talk

Expect the Expected

Talkat NDC Oslo 2018 · 2018-06-11..06-15· [rust]
slides:none on file

Proposal to standardize Expected<T> as a generic return type (work spearheaded by Jean‑Francois Bastian) encodes either a value or an error object, using an unexpected wrapper to tag error cases. It lets code choose local checks (if/result and dereference syntax) or centralized throwing (operator* triggers throw), transports rich error data across threads/APIs, and supports collections of results. Implementation details: careful noexcept/move/swap rules, tricky transactional swaps, and measurable compile/runtime tradeoffs versus classic exceptions; currently proposed for C++20.

AI-written summary · about

  1. 0:00Intro
  2. 2:15Discussing Exceptions
  3. 6:03Discussing Error Handling
  4. 17:12Discussing Special Values
  5. 20:47Exceptions
  6. 23:15Expected vs Unexpected
  7. 25:44Exception Handling
  8. 29:20Exception Aftermath
  9. 34:25Optional
  10. 35:33Promising Future
  11. 36:04Defining Expected
  12. 45:41Implementation
  13. 52:42Value
  14. 53:29Swap
  15. 58:56Typical Years
  16. 59:10Unexpected
  17. 59:31centralized use
~/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.