CppCon 2015: Andrei Alexandrescu “Declarative Control Flow"
What it is
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.
Why Hacker News recommends it
Pointed to in threads on defer, scope_exit and RAII as the clearest treatment of scope guards.
- 2 people recommended it
- 2 different months
- 0 strong recommendations
- first 2016, last 2022
What HN commenters said
“Andrei Alexandrescu - Declarative Control Flow”
Alexandrescu on declarative control flow for convoluted resource cleanup
Ace17, 2016-07 · Recommendation · in “Memory management in C programs (2014)”
“Andrei Alexandrescu has a fun talk about implementing scope_exit”
Fun talk on implementing scope_exit with std::uncaught_exceptions
uep, 2018-02 · Recommendation · in “Scope exit in C++11 (2012)”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: scope guard, raii, uncaught_exceptions, cppcon, andrei alexandrescu
Also recommended by the same people
talkCppCon 2015: Andrei Alexandrescu “std::allocator...”CppCon · 7 HN recommenders · 2017–2025
talkLexical Scanning in Go - Rob PikeGoogleFOSSSydney · 13 HN recommenders · 2012–2025
talkCppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step”CppCon · 9 HN recommenders · 2018–2026
talkRustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine WestRust Programming Language · 9 HN recommenders · 2018–2023
talkCppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”CppCon · 13 HN recommenders · 2016–2024
talkIdeas about a new programming language for games.Jonathan Blow · 7 HN recommenders · 2014–2025
talkCppCon 2014: Mike Acton "Data-Oriented Design and C++"CppCon · 9 HN recommenders · 2015–2026
talkHow I program CEskil Steenberg · 8 HN recommenders · 2017–2025