2 ms·
> Zig is there on performance, but for my purposes, the language gets in the way I guess zig for me is indeed a slightly more complicated language than c, and
by throwawaymaths 4y ago
> Zig is there on performance, but for my purposes, the language gets in the way
I guess zig for me is indeed a slightly more complicated language than c, and it's way more verbose, but what I appreciate about it is that straightforward code looks good and code that is on shakier ground looks hairier which is basically a "this code is sus, plz review the fuck out of it" sign.
In the end though, what gets in the way for me with C is everything else to ship a "real c program", especially when you want/need someone else's code. Lexical macros, header/code separation, flat namespace, errno, architecture dependent definitions for int, char, etc, having to think about object (file) units, make, automake, config...
At that point the cognitive burden is enough that a small added complexity in the language is worth it