News for hackers. Stuff that matters.
Re:Orthodox C++ by alisonkisk on Monday December 28, 2020 @08:09AM (#25558922)
That not the point, though. The point is that the cost is invisible with exceptions. For example, there could perhaps be an alternate version of C++ where every function is required to declare whether it could throw an exception (and a very smart compiler proves where it's possible), or that -fno-except flag is inverted so you have to opt in to exceptions.
Re:Orthodox C++ by jcelerier on Monday December 28, 2020 @08:30AM (#25559035)
you still have branches with noexcept, the difference is that they call std::terminate in case of stack unwinding.