← Back to context

Comment by chipdart

14 days ago

> Is "emphasizes" just another word for second-class support?

I don't know what's your personal definition of "second-class support" but what it means is that it's explicitly supported by the language.

C++ explicitly supports memory-safe programming. You can choose whether you want to mess around with raw pointer arithmetic.

What safeguards does the language actually put in-place?

  • > C++ explicitly supports memory-safe programming. You can choose whether you want to mess around with raw pointer arithmetic.

    I don't think you know what you're talking about. Managing object ownership through systems like smart pointers is not memory safety. Applications that use smart pointers still suffer from memory issues, and it's possible to adopt object ownership systems that still use raw pointers, such as It's object ownership system.

    • > I don't think you know what you're talking about.

      Right. I sound just like someone talking about how "a language which emphasizes immutability" is an OK replacement for a language with pure functions.

      3 replies →