• observantTrapezium@lemmy.ca
    link
    fedilink
    arrow-up
    28
    ·
    1 year ago

    I’ve heard this trope before but I’m skeptic. I’m not a C expert but I can’t believe memory bugs in that language are so much more benign than in C++.

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      16
      ·
      1 year ago

      It is indeed a trope and a mostly false one - C++ introduces more dramatic ways to footgun yourself but a plethora of tools to make it easier to avoid them - in particular the built in library functions actually encourage good C++ programming practices…

      Well, let’s just ignore gets().