3 ms·
> Most large C++ code bases are similar [...] outlaws exceptions While I can understand the ideas behind it, exceptions do cause head aches, I find it really w
by amag 10y ago
> Most large C++ code bases are similar [...] outlaws exceptions
While I can understand the ideas behind it, exceptions do cause head aches, I find it really weird. Enforcing this means using a very limited part of the C++ standard library, e.g. no std::vector, std::map, etc, because all those can throw exceptions. If you say no to exceptions but yes to std::vector then you either need to write code that works in the presence of exceptions (which means you could just say yes to them) or you have shoved your head in the sand like an ostrich thinking if you can't see them they can't happen.