4 ms·
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 en
by speps 7y ago
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.
- jessermeyer 7y agoWhile 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.