this post was submitted on 13 Apr 2024
729 points (95.8% liked)

linuxmemes

19747 readers
1930 users here now

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!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 76 points 2 months ago (3 children)

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

[–] [email protected] 55 points 2 months ago (1 children)
[–] [email protected] 33 points 2 months ago (2 children)

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

[–] [email protected] 5 points 2 months ago

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

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago) (1 children)

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.

[–] [email protected] 2 points 2 months ago

The STD is maybe the only good thing C++ has over C, […]. I can’t name another good thing C++ has. Maybe templates.

Are you high? I was praising the STL, you know, the template library?

[–] nandeEbisu 34 points 2 months ago

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

[–] [email protected] 12 points 2 months ago

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