From Jason Turner
Watch on YouTube

Summary

In this episode, Jason continues his series on modernizing legacy code by upgrading his infix math expression evaluator to C++23. He focuses on improving error handling, adding proper subtraction support, and exploring C++23's lambda attributes feature. The episode demonstrates how to transform a throw-based error handling system into one that provides clear, compiler-understandable messaging with appropriate error reporting. He also discusses the trade-offs between using exceptions versus std::expected for error handling in a constexpr context.

Resources

Tags