Skip to content

Comment on Zig is everything I want C to beparent

Comments

If you have a lot of experience with C, and take just a glance at the basics of Zig, I think you’ll understand why each of those changes were made. C doesn’t have very good syntax. Nether for compiler (correctly interpreting the code requires a lot of context), nor code editor, nor for humans.

If you have experience with some modern languages, you’ll definitely understand the syntax. Zig is close to a style of syntax that many newer languages seem to have settled on, and there are good reasons why that style has become prefer.

Why make a new language if you’re not going to make some improvements over the old? Seems like a very weird complaint to me.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.