|
|
|
|
|
by biryani_chicken
1604 days ago
|
|
Some of the comments in the page mention Zig. While Zig has iterators for slices, the simple "for" loop (that actually uses the while keyword) makes you define the variable outside the loop: var i: usize = 0;
while (i < 10): (i += 1) {
//use i
}
I hope they fix this before 1.0. |
|