• ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Issue is, Rust is not a drop-in replacement for C. The memory safety features are just one part, and since Rust is also a “weakly” functional language, thus its prefered to write such code with it.

    • lad@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      Anything that is drop-in replacement for C (or C++ for that matter) is going to be awful because of the same compatibility burden, imo

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Yeah, it’s not a small change. If there was a simpler way to make C memory-safe, it would have been done decades ago. It’s just a different language too, which is fair given how much younger it is.