Explore the controversial topic of exceptions in C++ through this comprehensive conference talk from CppCon 2023. Delve into the original intent and history of exceptions, understand their mechanics, and examine the philosophy behind their use. Analyze common cases of exception misuse, including resource management, retries, hierarchies, data passing, and control flow. Learn better alternatives for handling specific situations, often replacing exceptions with more appropriate paradigms. Discover scenarios that truly benefit from exceptions and gain insights into designing model exception classes. Benefit from the speaker's extensive experience in C++ development across various industries to understand what works best for large-scale engineering projects.
Overview
Syllabus
Exceptionally Bad: The Misuse of Exceptions in C++ & How to Do Better - Peter Muldoon - CppCon 2023
Taught by
CppCon