Ive done some c. I love it. I tried zig. I still love c over zig. So I request you to point me where coding in zig > c. Thank you
Where Zig is going to obviously beat C is going to be in two areas. First is when creating an API. This is due to it actually having a type system. Like all type systems what that gets you is less about what you can do, than about what you can’t, or more accurately what other people can’t when using your code.
The second thing is going to be meta-programming tasks. Zigs comptime system is far more advanced and less error prone than the very primitive macro system C has. C macros are just riddled with footguns due to them being glorified find and replace operations.
As for actual examples of this I don’t actually have anything I can point to because honestly I haven’t used either C or Zig much at all. These days I mostly work in Rust. I appreciate that Zig is a better C, but I just don’t have anything where I’d want to use C for which by default eliminates Zig as well.
