Functional C++
summary
Argues C++11 features like std::function and lambdas let code move toward immutability and one‑way data flow; shows concrete idioms (value types with assignment-as-rebind, withX() builders), a contiguous persistent Vector and immutable Set representation, and how sharing representation keeps cheap copies. Points out real costs: shared_ptr incurs atomic inc/dec and can blow the stack when destructors recurse (examples fail around ~2,000 nodes), and C++ garbage collection is optional so portability is affected. Recommends prefer copy/const value semantics and use persistent structures where performance and decoupling matter.
AI-written summary · about
chapters (16)
- 0:00Intro
- 8:56Practical Examples
- 12:30Observer Approach
- 15:00Void Pointer
- 21:44Legal
- 22:17Mutability
- 23:59Asking a question
- 24:31Consistency
- 26:13Isolation
- 27:39Date Classes
- 39:20Persistent Data Structures
- 40:48Constant Time Operations
- 48:16Hamlet
- 51:24Garbage Collection
- 55:16The problem
- 57:56Wrap up








