News for hackers. Stuff that matters.
Re:C++ the Good Parts (2014) by kabdib on Thursday October 01, 2020 @10:05PM (#24658054)
Using C++ exceptions is just not acceptable in large, production systems. I've worked on several C++ systems with tens of millions of lines of code. Different teams independently reached the conclusion that exceptions were destabilizing, and hid bugs and failures.

Take a look at the Google C++ guidelines, as an example.

https://google.github.io/styleguide/cppguide.html#Exceptions

They're fine in other languages (python, etc.). Note that golang does not really have them, except in a very crude sense.

Re:C++ the Good Parts (2014) by int_19h on Friday October 02, 2020 @09:51PM (#24668840)
I've worked on several large production systems written in C++ that use exceptions throughout. Don't assume that your personal experience is the norm across the entire industry. The Google C++ style guide is (unfortunately) popular, but it still covers the minority of C++ projects overall, and there's plenty of criticism of it around, including from large teams working on production systems.

I will also add that, from my past experience working on codebases that didn't or couldn't use exceptions (e.g. across C ABI boundary), the lack of exceptions, and people forgetting to check error codes, or propagating them improperly, was a very common source of hidden bugs.

Re:C++ the Good Parts (2014) by ncmncm on Saturday October 03, 2020 @02:18AM (#24670000)
> Using C++ exceptions is just not acceptable in large, production systems.

This is a wholly false statement. Exceptions are used almost everywhere C++ is used. Google is a peculiar outlier, and suffers for it. You can read right in the cited document why they were obliged to give up using exceptions. It imposes huge costs which Google happens, by virtue of monopoly status, to be equipped to afford.

Re:C++ the Good Parts (2014) by aprdm on Friday October 02, 2020 @02:41AM (#24659647)
The conclusion in google's page has nothing to do with bugs and failures. They mention how it would be better to use it but for practical reasons (read big legacy code base) it isn't feasible.