4 ms·
> exception shall occur in exceptional circumstances because they are costly in C++ The upside is that the happy path (without exceptions) can be branch-free (
by _pmf_ 9y ago
> exception shall occur in exceptional circumstances because they are costly in C++
The upside is that the happy path (without exceptions) can be branch-free (or at least contain fewer branches than equivalent code handling errors), which is beneficial to performance (hot path stays hot).