3 ms·
Zig has multiple issues, but syntax is definitely not it. It might take a little bit of time getting used to, if you are coming from another language, but it's
by lukaslalinsky 3mo ago
Zig has multiple issues, but syntax is definitely not it. It might take a little bit of time getting used to, if you are coming from another language, but it's one of the most readable languages I've ever worked with.
- benatkin 3mo agoThat is an opinion framed as a fact. There's plenty to rub a coder the wrong way, such as the sigil in builtin functions like @import, the dot syntax in structures (.{}, Timestamp{ .seconds = 0, .nanos = 0, };), triple slash comments (///), and multiline strings (beginning each with \\ - good luck grepping for escaped backslashes). However, that is just like any programming language - none is immune to this criticism.
- peesem 3mo agothe triple slash is only for doc comments, not normal code comments - those are still double slashes. also, why would you want to grep for escaped backslashes?
- seanclayton 3mo agoLisps have multiple issues, but syntax is definitely not it. It might take a little bit of time getting used to, if you are coming from another language, but LISPs are some of the most readable languages I've ever worked with.