HackerTube / Video

CppCon 2015: Andrei Alexandrescu “Declarative Control Flow"

CppCon

CppCon 2015: Andrei Alexandrescu “Declarative Control Flow"

Andrei Alexandrescu's CppCon 2015 talk on handling exceptional control flow declaratively in C++. It uses scope guards with success and failure variants, built on std::uncaught_exceptions, to replace ad hoc RAII classes and rethrowing try/catch blocks.

Pointed to in threads on defer, scope_exit and RAII as the clearest treatment of scope guards.

5 Hacker News mentions · 2016–2022

Topics

Watch on YouTube

Explore more videos