Is C++ doomed?
-
I’ve written a lot of data structures before, but I’ve never written one that is “idiomatic”. After doing it, I’m left with the question, is it actually feasible to do any of this correctly?
Hardly everybody uses it anymore
-
I’ve written a lot of data structures before, but I’ve never written one that is “idiomatic”. After doing it, I’m left with the question, is it actually feasible to do any of this correctly?
Hardly everybody uses it anymore
Quote:
But exceptions come at a performance cost. So ideally we want to turn them off. So let’s turn them off ...
And that's a wrap, folks! Unless you are making programs that rely on throwing exceptions for normal logic flow, in which case you should be completely wrapped up _and_ fired. But he does go on to make some valid points after spouting that nonsense. (For newbies - exceptions only impede performance _when_ they are thrown. And they should only be thrown for real issues, not as logic checks. And when they are thrown for real issues, the alternative is almost always complex and time-consuming. Not as time consuming as a full stack unwind, but still problematic, and usually non-trivial to code.)
Our Forgotten Astronomy | Object Oriented Programming with C++
-
Quote:
But exceptions come at a performance cost. So ideally we want to turn them off. So let’s turn them off ...
And that's a wrap, folks! Unless you are making programs that rely on throwing exceptions for normal logic flow, in which case you should be completely wrapped up _and_ fired. But he does go on to make some valid points after spouting that nonsense. (For newbies - exceptions only impede performance _when_ they are thrown. And they should only be thrown for real issues, not as logic checks. And when they are thrown for real issues, the alternative is almost always complex and time-consuming. Not as time consuming as a full stack unwind, but still problematic, and usually non-trivial to code.)
Our Forgotten Astronomy | Object Oriented Programming with C++
I'm looking forward to you taking an exception to another C++ item I have coming up after lunch :)
TTFN - Kent
-
I'm looking forward to you taking an exception to another C++ item I have coming up after lunch :)
TTFN - Kent
What if I make an exception?
Our Forgotten Astronomy | Object Oriented Programming with C++
-
I’ve written a lot of data structures before, but I’ve never written one that is “idiomatic”. After doing it, I’m left with the question, is it actually feasible to do any of this correctly?
Hardly everybody uses it anymore
He makes some reasonable points but also whines. The problem, as I discovered when corresponding with someone who wrote a proposal for handling POSIX signals in C++, is that the standards crowd are very conservative. They're incapable of growing a pair and telling existing users that the next version will have some non-upward compatible changes which will require retesting and possibly rework. And if you're not willing to accept that, then stay on the version you're currently using. So lots of things get bolted on, especially in edge areas that are only of interest to the pedantic, and nothing gets removed.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
He makes some reasonable points but also whines. The problem, as I discovered when corresponding with someone who wrote a proposal for handling POSIX signals in C++, is that the standards crowd are very conservative. They're incapable of growing a pair and telling existing users that the next version will have some non-upward compatible changes which will require retesting and possibly rework. And if you're not willing to accept that, then stay on the version you're currently using. So lots of things get bolted on, especially in edge areas that are only of interest to the pedantic, and nothing gets removed.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.Greg Utas wrote:
They're incapable of growing a pair and telling existing users that the next version will have some non-upward compatible changes which will require retesting and possibly rework. And if you're not willing to accept that, then stay on the version you're currently using.
I can't remember where I picked up this word of wisdom - Any sufficiently high-versioned standard is indistinguishable from a can of worms.
-
Greg Utas wrote:
They're incapable of growing a pair and telling existing users that the next version will have some non-upward compatible changes which will require retesting and possibly rework. And if you're not willing to accept that, then stay on the version you're currently using.
I can't remember where I picked up this word of wisdom - Any sufficiently high-versioned standard is indistinguishable from a can of worms.
You're quoting me! The Lounge[^]
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
You're quoting me! The Lounge[^]
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
I was going to suggest that it must have been ACC who said it. :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.