• anaVal@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    5
    ·
    26 days ago

    The two languages are polar opposites in this regard, Zig places the burden on the developer and makes it easy for them to produce memory safe software, whereas Rust places the burden on the compiler and makes it hard for developers to produce memory unsafe software.

    The article even points this out. I personally think it’s very good to have these two languages for these separate use cases.The right tool for the job and all that.

    • TehPers@beehaw.org
      link
      fedilink
      English
      arrow-up
      9
      ·
      26 days ago

      I agree, Zig is awesome. But the author missed the entire point of the borrow checker. It exists to make you a better programmer, not to just annoy you. The author immediately then showcased why the borrow checker exists in their example of why it’s annoying lol.