Hacker News new | past | comments | ask | show | jobs | submit login

No for loops with a constant count is also a very strange choice

    for (([100]void)(undefined)) |_, verb| {
And I've been bitten multiple times with line endings having to be \n only.





While I agree it's jarring to adjust to Zig's purpose of a for loop (iterate over collections), the syntax here is really pushing you, consciously, to adopt while loops instead. The only snag is that the invariant lives outside the scope of the while, which feels bad.



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: