3 ms·
> Don't use C++ exceptions That's not what Google's C++ style guide says at all. They only argue that Google's old C++ code base is not exception-tolerant, thu
by rumanator 7y ago
> Don't use C++ exceptions
That's not what Google's C++ style guide says at all. They only argue that Google's old C++ code base is not exception-tolerant, thus as they don't want to waste time and they don't want risk adding bugs by refactoring their legacy code then they just decided to not use exceptions.
That's it.
- sxyuan 7y agoYou're right. My point wasn't that one should blindly follow Google's style guide and avoid using C++ exceptions, only that there is an alternative to the C/C++ dichotomy that the author presents. It's possible to write millions of lines of C++ without using exceptions. There's a trade-off, which is described in more detail in the style guide, and the choice depends on the specifics of one's project.