News for hackers. Stuff that matters.
Re:Current hardware trends make C++ exceptions harder to jus... by lanstin on Tuesday February 22, 2022 @03:49PM (#30433544)
The compiler makes them part of the API. And what a lot of people do is just throw in a bunch of blanket catches with empty code. Although some of this is server vs. desktop software - the article was about complex GUI apps, not long running servers. Tho I personally think long-running servers shouldn't use exceptions. Each call to something out of the running code stack frame should explicitly decide what to do on failure or "didn't hear back." That's how your server gets to be bullet proof (and by bullet proof, I don't mean "auto-restarts on unhandled exception.")

There are no comments on this comment yet.