• onlinepersona
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    2
    ·
    1 month ago

    C++ might not be as memory-safe as Rust, but let’s not pretend a Rust code base wouldn’t be riddled with raw pointers.

    I’m curious. Why do you believe the last statement to be true?

    Anti Commercial-AI license

    • WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      I don’t know if it’s riddled with it or not, but what I (think to) know is that one of Rust’s goal is to minimize them. No need for raw pointers when handling lists and buffers most of the time.