Zig’s Lovely Syntax

Zig’s Lovely Syntax Aug 9, 2025 It’s a bit of a silly post, because syntax is the least interesting detail about the language, but, still, I can’t stop thinking how Zig gets this detail just right for the class of curly-braced languages, and, well, now you’ll have to think about that too. On the first glance, Zig looks almost exactly like Rust, because Zig borrows from Rust liberally. And I think that Rust has great syntax, considering all the semantics it needs to express (see “Rust’s Ugly Syntax”). But Zig improves on that, mostly by leveraging simpler language semantics, but also through some purely syntactical tasteful decisions. Integer Literals How do you spell a number ninety-two? Easy, 92. But what type is that? Statically-typed languages often come with…

Read more on Lobste.rs