4 ms·
It has no “for (init; cmp; step)” type loop, and instead you had to use: var i: usize = 0; while (i < sz) : (i += 1) { ... } Meaning that the
by messe 4y ago
It has no “for (init; cmp; step)” type loop, and instead you had to use:
var i: usize = 0;
while (i < sz) : (i += 1) {
...
}
Meaning that the scope for i would leak.
It did have a foreach-style for loop, as seen in the article though.
- kzrdude 4y agoLooks like they have the most important part in place, the increment before the next iteration.