• refalo@programming.dev
    link
    fedilink
    arrow-up
    2
    arrow-down
    11
    ·
    4 days ago

    To be fair, it’s entirely possible to make the same and very similar mistakes in Rust, too.

    • robinm@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      Is it possible to do in Rust?

      Yes

      Is possible to do in Rust, by mistake, and not easily caught by a review?

      Definitively not.

    • GetOffMyLan@programming.dev
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      edit-2
      4 days ago

      I’m fairly sure use after free isn’t possible unless you explicitly use unsafe code right?

      It’s compiler enforced is the point.