• sus@programming.dev
      link
      fedilink
      arrow-up
      27
      arrow-down
      1
      ·
      edit-2
      14 hours ago

      every single language (except Vlang 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
        5
        arrow-down
        2
        ·
        7 hours 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
          1
          ·
          2 hours 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.