• WolfLink@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        17 days 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
          0
          ·
          17 days 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.

    • sus@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      17 days 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.