~/talk

And Then() Some(T): C++ Combinators - Higher-Order Functions in Cpp

Talkat ACCU 2023 · 2023-04-19..04-22· [c-and-cpp, functional-programming]
slides:none on file

Shows concrete C++ examples that turn string parse/trim/length and safe division into chained continuations so code never unwraps intermediate results and error cases carry context. Uses fmap style lifting for vector and optional pipelines, uses and_then / bind style chaining with optional/expected and demonstrates a parser returning optional<int> and a safe divide returning an error enum. Notes C++23 monadic extensions land unevenly so tl::optional and ntl::expected work as drop‑in replacements and the patterns compile and reduce boilerplate.

AI-written summary · about

  1. 0:00Start
  2. 3:53Example
  3. 4:12Lifting capitalize()
  4. 5:21Lifting a function to a vector
~/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.