• corroded@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    C++ is just as “safe” as Rust if you use modern language features (std::unique_ptr, for instance). I would argue that anyone who says Rust provides better memory safety than C++ most likely is not familiar with modern C++ and still sees the language as “C with classes.”

    • RustyWizard@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      I would argue that anyone who says C++ provides a similar level of memory safety as rust hasn’t done serious development work in either language.