~/talk

C++ Error Handling Revisited

Talkat NDC TechTown 2020 · 2020-08-31..09-03· [c-and-cpp]
links:none on file
slides:none on file

Shows a working plant-watering example that compares Haskell’s Maybe/Either and do/bind patterns with Rust’s Option/Result and C++17 features, using std::optional, std::variant and std::visit then replacing them with a small custom result type and a C++ bind operator. The custom wrapper noticeably cuts boilerplate and keeps descriptive value-returning APIs; implementing do-notation in readable C++ remains unresolved, but the homemade result plus bind proves practical and surprisingly simple.

AI-written summary · about

  1. 0:00Intro
  2. 2:18Example
  3. 4:05Patterns
  4. 8:04Haskell
  5. 9:33Error Handling
  6. 10:56Maybe
  7. 17:32Bind Operator
  8. 21:24Do Notation
  9. 29:40Rust
  10. 35:56Standard Optional
  11. 38:38Standard Variant
  12. 41:20Standard Visit
  13. 53:45Conclusion
~/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.