• einsteinx2@programming.dev
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      1 year ago

      I haven’t don’t much programming in Rust yet, but just based on the syntax and apparent complexity (at least it looks quite complex to an outsider like me) it always seemed more like “C++ but better” rather than “C but better”.

    • rmam@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      1 year ago

      Definitions of “better” may vary. It’s better to be objective and refer to specific features. For instance, the C programming language is standardized and ubiquitous, and in the event of a nuclear apocalypse odds are C projects will continue to be compilable. None of it’s alternatives comes close to provide that level of stability and reliability.

      • MooseBoys@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        3
        ·
        1 year ago

        I’m not saying Rust is better - I prefer c/cpp myself. I’m just saying that if someone is going to move away from c to a new language, it’s overwhelmingly more likely to be Rust.

    • offbyone@reddthat.com
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I haven’t used Zig myself but I think it could have its place. IMO Rust has moved too far away from C to be something many existing users will move to (and using both in the same project is messy), but Zig seems to integrate well enough that it might.