No. C++ being a mistake is a valid argument. There are enough smart people claiming this that you can't dismiss it (Linus Torvalds for example). While the argument is not definitive it is valid enough that it must be considered.
One thing I highly disagree with in your statement is this: " C++ was about as close to excellence as we could’ve hoped for."
In my opinion, C++ is nowhere close to excellence. Best available option for certain applications is more inline with my opinion of it.
> There are enough smart people claiming this that you can't dismiss it (Linus Torvalds for example)
Torvald's anti-C++ rant was full of factual errors when he wrote it and it hasn't improved with age.
If you want to point to "smart people claiming C++ was a mistake" you need to actually use people who actually know & have experience with C++ in the first place - which isn't Torvalds.
There's also other smart people, like John Carmack, who have been converted from C to C++ and now prefer the later especially for working in a team environment. C++ is far from perfect, but there's also pretty strong arguments that it does still represent an improvement over C on average. Yet (almost) nobody argues that C was a mistake.
>There's also other smart people, like John Carmack, who have been converted from C to C++ and now prefer the later especially for working in a team environment. C++ is far from perfect, but there's also pretty strong arguments that it does still represent an improvement over C on average. Yet (almost) nobody argues that C was a mistake.
The second sentence has a short list of some of the smart people who don't like it: "Among the critics have been: Robert Pike, Joshua Bloch, Linus Torvalds, Donald Knuth, Richard Stallman, and Ken Thompson". I'll leave it up to the reader to research why they criticize C++ (not C). However in the references there's a good article from Rob Pike:
> One thing I highly disagree with in your statement is this: " C++ was about as close to excellence as we could’ve hoped for."
It’s fine to disagree, but it seems mildly disingenuous to omit all the qualifiers I (very deliberately and intentionally) prefaced that statement with when you do so. In that sense, you’re actually disagreeing with an opinion I don’t actually hold.
>All things considered, for the time, given the paradigms we understood to be effective, and for the value within the design space, C++ was about as close to excellence as we could’ve hoped for. It didn’t replace C, nor was it meant to, but for its purpose it was a great success.
I disagree with this entire statement. It's not even close to excellence even given all the deliberate and intentional qualifiers you put around it.
I believe that when I re-clarify my comment in this context it becomes clear that I am in totality disagreeing with your statement.
I think C++ became popular due to luck in the same way javascript came to dominate the frontend. I believe there could've been a number of possible better alternative outcomes if luck would have been different.
Quoting "celebrities" as if their word is infallible for some reason is just silly.
Torvalds has ranted about many things he knows nothing about and this is no exception. His opinions belong in the trash bin and should be ignored, not used as evidence.
One thing I highly disagree with in your statement is this: " C++ was about as close to excellence as we could’ve hoped for."
In my opinion, C++ is nowhere close to excellence. Best available option for certain applications is more inline with my opinion of it.