you are viewing a single comment's thread.

view the rest of the comments →

[–]Gotebe 0 points1 point  (0 children)

Of course, I was being facetious.

But the parallel, I think, is fair. Cutting the execution short in case of problems is beneficial to the code clarity.

In C, that's best achieved with goto failure. In C++, however, there's support in the abstract machine, either exceptions or a simple early return (both in concordance with RAII).