~/talk

“Functional programming: functors and monads"

Talkat CppCon 2015 · 2015-09-21..09-25· [functional-programming]
links:none on file
slides:none on file

Covers concrete C++ examples: implements fmap for optional/vector/future using Boost optional, std::vector and futures, shows how fmap replaces manual loops and checks, defines join flattens nested monads to turn optional<optional<T>> or vector<vector<T>> into single-layer values, derives mbind as fmap+join, sketches a C++ do-style flow using lambdas as chained monadic binds, and argues exceptions can be treated as error monads. Materials and code live on the conference GitHub.

AI-written summary · about

  1. 0:00Introduction to functors
  2. 2:08What is a functor
  3. 8:23Fmap and its use cases
  4. 13:03Why functors are useful
  5. 15:40Introduction to monads
  6. 18:10Monadic bind explained
  7. 21:22Monads as programmable semicolons
  8. 23:54Do notation in C++
  9. 25:00Pure functions and exceptions
  10. 25:47Category theory introduction
  11. 26:51Q&A on functional concepts
~/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.