sunshowers 6 days ago

Can you think of good reasons why an organization would hesitate to use C++ exceptions?

1
pjmlp 5 days ago

Legacy code writen as if it was C with a C++ compiler, or that predates the C++98 standard (during the 1980-90's, where C++ARM was the only guidance), the Orthodox C++ folks, claiming that they are too slow or bloated (most of the time based on hearsay and not profiled), on embedded computers better than everything I owned since 1980's until 2000's, put together.

The same folks won't have a second thought distributing statically linked binaries that triple the size, while using languages that don't do exceptions, but then it isn't bloat, talk about being coherent.

sunshowers 5 days ago

I think another reason is that C++ mutexes typically don't poison on throwing an exception.