Comment

Comment by shin_lao

If you use C++ without exceptions, it means you cannot use the STL or any library that throws. Pretty weak.

Additionally, almost all examples of "exceptions are bad", fall short because of RAII (at least in C++) or finally clauses (in other languages).

Good reasons for (almost) not using exceptions (in C++):

- Performances

- "Expectability"/readability

- Platform-dependant constraints

There are probably others, but the article only talks about the "readability" arguments without even mentioning things such as exceptions specifications.

One thing you need to remember about exceptions: they're nothing more than a fancy goto.

parent shin_lao 14 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton