Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the practical challenges and limitations of std::expected, the C++23 error handling abstraction, in this 46-minute conference talk from NDC TechTown 2025. Discover five significant issues that arise when using std::expected as a primary error-handling mechanism in large codebases, including problems with allowing the same type for both error and value, complications from mixing monadic and regular interfaces, lack of customization points for inaccessible values or errors, absence of built-in argument binders, and insufficient monadic operations for applicative-like functionality. Learn about real-world code samples and open-source helper utilities that address these gaps in the standard library, while gaining insights into common pitfalls and potential solutions. Understand how these limitations impact software engineering practices and explore opportunities to contribute to the evolution of this abstraction through future improvement proposals.
Syllabus
Five Issues with std::expected and How to Fix Them - Vitaly Fanaskov - NDC TechTown 2025
Taught by
NDC Conferences