Hacker News new | ask | show | jobs
by packetlost 1049 days ago
Namespaces.

Real enums, modules, etc.

A compile-time execution system (effectively replaces the preprocessor/macro system).

Syntax that is easier to `grep -r` for without complex regex.

Tests are a first-class citizen.

Safer type system.

Really, just a bunch of things that should've been added to C 20 years ago.

2 comments

Zig is very pedantic about how you're using your pointers and arrays, which c desperately needed.
It’s difficult and even probably impossible to just “add” those things to C, while keeping everything else as it is.
Yeah, I know...