• sus@programming.dev
      link
      fedilink
      arrow-up
      26
      arrow-down
      3
      ·
      edit-2
      3 months ago

      every single language (except V of course) is memory safe if you program it perfectly.

      Very, very few humans are capable of doing that, especially with C.

      • WolfLink@sh.itjust.works
        link
        fedilink
        arrow-up
        7
        arrow-down
        3
        ·
        3 months ago

        You can still make stupid mistakes in Rust. It may make it harder to make the most common mistakes, but pretending the guardrails are prevent any type of mistake is asking for a problem to happen.

        • pathief@lemmy.world
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          3 months ago

          The only one pretending mistakes can’t happen is the person I replied to. Mistakes definitely can happen and no programming language is fool proof.

          Continuing my car analogy, would you rather drive a car with airbags and seatbelts or one without them? Of course you can still have a fatal accident, but it’s nice to have safety features that make it as unlikely as possible.