From Jason Turner
Watch on YouTube

Summary

This episode explores the concept of Lippincott functions, named after Lisa Lippincott, as a technique for centralizing exception handling code. Jason demonstrates how duplicated try-catch blocks across multiple functions can be consolidated into a single helper function that manages all exception handling logic. Using compiler explorer examples, he illustrates how this approach can significantly reduce code duplication and binary size, especially in templated code where exception handling might otherwise be duplicated for each template instantiation.

Resources

Tags