Hacker News new | ask | show | jobs
by Alifatisk 1260 days ago
Why is Zigs syntax so … foreign to me? What’s the hype behind it?
2 comments

You're looking at a piece of code that's doing a type of metaprogramming mostly unique to Zig. Additionally I'm using a for loop capture syntax that is not common in other languages (closest thing I can think of are Ruby blocks).

You're just looking at a piece of code that is understandable for a newcomer to not find familiar.

Take a look at Rust and you'll see where a lot of it is coming from.
I used to hate Rusts syntax, but a YT channel in the name of ”No boilerplate” made me see the beauty in it.
Actually i found zig easier to read than rust… something that i found more appealing!