jet icon indicating copy to clipboard operation
jet copied to clipboard

Suggestion to use c-style `for` loop

Open Joe23232 opened this issue 2 years ago • 0 comments

Hi, I wish to suggest the use of c-style for loop.

For example:

for mut i := 0; i < 10; i++
{

}

It can also do something like this:

mut i := 0;
for ; i < 10; i++
{

}

or have multiple instances:

for mut i := 0, mut x := 10; i < 10, x < 100; i++, x *= 2
{

}

Joe23232 avatar Oct 29 '21 13:10 Joe23232