2 ms·
Google is an example that writing production code that doesn't use exceptions is possible, not that this is the right thing to do. They said that their decisio
by Ace17 10y ago
Google is an example that writing production code that doesn't use exceptions is possible, not that this is the right thing to do.
They said that their decision was primarily legacy-motivated (in short, they were fearing that introducing exceptions in a non-RAII codebase would lead us to a long period of instability).
I'll add that in some situations (e.g when freeing resources) the control flow gets very convoluted, and you don't want to deal with directly.
See: Andrei Alexandrescu - Declarative Control Flow ( https://www.youtube.com/watch?v=WjTrfoiB0MQ https://www.youtube.com/watch?v=WjTrfoiB0MQ )