• Rossphorus@lemm.ee
    link
    fedilink
    arrow-up
    74
    ·
    7 months ago

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

        • Vilian@lemmy.ca
          link
          fedilink
          arrow-up
          8
          arrow-down
          3
          ·
          7 months ago

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

        • magic_lobster_party@kbin.run
          link
          fedilink
          arrow-up
          5
          arrow-down
          3
          ·
          edit-2
          7 months ago

          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.

          • acockworkorange@mander.xyz
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            7 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?

    • blind3rdeye@lemm.ee
      link
      fedilink
      arrow-up
      15
      arrow-down
      3
      ·
      7 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…)