• WhyJiffie@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    2 days ago

    point is, Rust manages to give you not a segfault but a meaningful error almost all the time until you use unsafe

    • SorryQuick@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      If you’re getting a segfault in C++, it’s also cause you used unsafe code. It’s just not officially enclosed in an “unsafe” block.