3 ms·
Google's styleguide makes it clear that the reason they don't use exceptions is because all code that calls a function that may throw an exception needs to be e
by nostrademons 13y ago
Google's styleguide makes it clear that the reason they don't use exceptions is because all code that calls a function that may throw an exception needs to be exception-safe, and Google has a large body of code that was written before exceptions were reliably supported by many compilers and so isn't exception-safe. It's a historical accident, in other words. The styleguide is also clear that if they were designing the it in the present without having to deal with a large body of legacy code, they might make a very different choice.