‹ BackHN Continuity

Thread

What Zig felt like, coming from Rust

282 points · 351 comments · ksec

  1. hn_submit · · focus · HN ↗
    There will never be a true successor to C since C is "high level assembly." The lack of pointer checking, unsafe casts and non-existent bounds checking aren't an oversight but by design! Assembly doesn't have them so neither does C! There's no reason to whine about it.

    The real problem is that people are using C for the wrong reasons. C is for the development of operating systems and low-level code, not applications.

    Zig is more modern but anything that does even one iota more of hand-holding or has anything that looks like a guardrail fails the test.

    If you want to write applications use Pascal, Java, C#, Swift or Go.

    1. monocasa · · focus · HN ↗
      Except Rust is actively being used in kernel space and low level embedded systems as well.
      1. hn_submit · · focus · HN ↗
        It's useful, but systems programming languages shouldn't be used to create applications in the first place.

        We're trying to solve a problem that shouldn't be solved. We're continuing and even confirming the usage of systems programming languages for application development.

        1. monocasa · · focus · HN ↗
          Rust is also a great language for app code. I reach for it now in places I used to use python.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.