Torvalds just really dislikes C++. He’s gone on the record saying that he thinks it’s just not a good language. In his own words “C++ is just a waste, there is no design at all, just adding some scum on top of C.”
The STD is maybe the only good thing C++ has over C, and even that is awful compared to other language’s standard libraries.
I can’t name another good thing C++ has. Maybe templates. C++’s reliance on inheritance for polymorphism is awful (should’ve gone with interfaces/traits).
Not to mention the mess with all the different types of constructors that must always be implemented.
It’s just a bunch of bad design choices added on top of an old outdated language.
I would have agreed with that before C++11. But since then, C++ has improved a lot. Its like the vision of what C++ suddenly became more clear. So I wonder if Linus would still say that today. (Unfortunately, there have been a lot of missteps in the development of C++ though, and so there is a lot of cruft that everyone wishes was not there…)
Torvalds just really dislikes C++. He’s gone on the record saying that he thinks it’s just not a good language. In his own words “C++ is just a waste, there is no design at all, just adding some scum on top of C.”
he’s not wrong
In the specific use case of kernel programming, maybe. But the Standard Template Library is awesome.
they dumped everything in the languaga, at least samething they needed to have right, it’s otherwise statistically impossible
The STD is maybe the only good thing C++ has over C, and even that is awful compared to other language’s standard libraries.
I can’t name another good thing C++ has. Maybe templates. C++’s reliance on inheritance for polymorphism is awful (should’ve gone with interfaces/traits).
Not to mention the mess with all the different types of constructors that must always be implemented.
It’s just a bunch of bad design choices added on top of an old outdated language.
Are you high? I was praising the STL, you know, the template library?
Never before have I been so offended by something I 100% agree with.
I would have agreed with that before C++11. But since then, C++ has improved a lot. Its like the vision of what C++ suddenly became more clear. So I wonder if Linus would still say that today. (Unfortunately, there have been a lot of missteps in the development of C++ though, and so there is a lot of cruft that everyone wishes was not there…)