4 ms·
That's the wrong impression, C already fills that "in my days" niche nicely (and it does it well) ;) Zig enforces correctness in a lot of places, it doesn't ha
by flohofwoe 6y ago
That's the wrong impression, C already fills that "in my days" niche nicely (and it does it well) ;)
Zig enforces correctness in a lot of places, it doesn't have C's sloppy implicit type conversions, it's impossible to accidentally use uninitialized data, it has "proper" arrays and slices with range checking, it enforces to handle return values, it has a proper error-handling system, etc etc...
But it's quite hard to balance "correctness" with "convenience", Zig has placed itself somewhere between "hippie C" and "extremist Rust". When it comes to enforcing correctness, it's much closer to Rust than C though.