You are viewing a single thread.
View all comments View context
76 points

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.”

permalink
report
parent
reply
55 points

he’s not wrong

permalink
report
parent
reply
33 points

In the specific use case of kernel programming, maybe. But the Standard Template Library is awesome.

permalink
report
parent
reply
5 points

they dumped everything in the languaga, at least samething they needed to have right, it’s otherwise statistically impossible

permalink
report
parent
reply
2 points
*

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.

permalink
report
parent
reply
34 points

Never before have I been so offended by something I 100% agree with.

permalink
report
parent
reply
12 points

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…)

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

I use Arch btw


Sister communities:
Community rules
  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

Community stats

  • 7.5K

    Monthly active users

  • 1.2K

    Posts

  • 68K

    Comments