News for hackers. Stuff that matters.
Re:Current hardware trends make C++ exceptions harder to jus... by throwuxiytayq on Tuesday February 22, 2022 @06:32PM (#30435369)
But it's not reasonable, sensible or performant. Thankfully, I've never seen anyone abuse exceptions like that in C# or any other language, is it really a thing in C++?
Re:Current hardware trends make C++ exceptions harder to jus... by Koshkin on Tuesday February 22, 2022 @07:10PM (#30435734)
Fortunately, it is not. As this discussion shows, people more tend to avoid exceptions for various reasons (both good and bad) than to abuse them.
Re:Current hardware trends make C++ exceptions harder to jus... by renox on Tuesday February 22, 2022 @08:29PM (#30436401)
I wish unfortunately that's not my experience at work one developer used exception as a control flow with the excuse that it was on a non performance critical part of the code.. Annoyed me very much as it made gdb's 'catch throw' useless. So I reimplemented this code and the result was easier to read IMHO but of course I'm biased..