The Imperatives Must Go! [Functional Programming in Modern C++]
summary
Claim: modern C++ already absorbs FP ideas and shows concrete code. Demonstrations include fmap for std::optional and lifted functions, use of Boost.hof and Lyft-style helpers, and ranges with lazy views showing composable, efficient pipelines. Covers implementing boxes (unique_ptr/optional/vector) as contexts, simple fmap implementations, and upcoming monadic extensions to std::optional/std::future/std::expected. Examples compile on recent toolchains and the GitHub repo links provide runnable snippets.
AI-written summary · about
chapters (10)
- 0:00Start
- 4:43Paradox of Programming
- 7:43Semantics
- 9:03What is Functional Programming?
- 12:50Historical Background
- 19:14A Taste of Haskell
- 19:29Quick Sort
- 21:12True Story
- 54:43Remember him?
- 55:23Takeaway
related talks
01h 09mFunctional Programming in C++
01h 01mApplicative: The Forgotten C++ Functional Pattern
59mFunctional Programming: data
01h 02mC++20 - My Favorite Code Examples
50mThinking Functionally in C++
55mMonadic Operations in C++23
01h 04mFunctional C++ for Fun and Profit
50mFunctional reactive programming in C++
