“Applying functional programming in code design"
summary
Argues C++ can be structured functionally by preferring pure functions, using functional data structures (node‑based immutable lists that share nodes to cut memory), and designing value‑semantic, composable, lazy pipelines instead of mutating algorithms. Notes constexpr and a compiler pure attribute (GCC, Clang, ICC) and critiques the 2013 Walter Brown exception proposal and futures do_then error handling. Presents a small example application that composes lazy transforms, demonstrates node sharing, and proves the approach practical.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 0:21Functional programming ideas
- 8:30Functors and monads
- 14:14Global constants in FP
- 22:39Writing generic code
- 31:42Designing for success
- 37:51Discovering patterns
- 42:44Guidelines and abstractions
- 45:19Q&A
related talks
01h 02mFunctional C++
01h 04mFunctional C++ For Fun And Profit
01h 31mFunctional Programming in Modern C++: The Imperatives Must Go!
01h 01mFunctional C++
44mFunctional Programming You Already Know
01h 06mThe Joy of Functional Programming
01h 47mFunctional C++
01h 06mDesigning Applications with Functional Programming Constructs
