Explore a comprehensive conference talk on eliminating null pointers in C++ programming. Learn how banning null can lead to beautiful, safer code with clearer interfaces and fewer unnecessary checks. Discover techniques for replacing null with non-nullable types, std::optional, and gsl::not_null. Understand the problems associated with null pointers, including undefined behavior and unclear APIs. Dive into practical examples of using value semantics, references, and standard library components to create more robust C++ code. Gain insights on bug classification and strategies for handling both optional and definite pointers. Suitable for introductory-level C++ developers looking to improve code safety and readability.
C++ - No More Nulls! - Fixing the Billion Dollar Mistake