Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion to use c-style for loop #7

Open
Joe23232 opened this issue Oct 29, 2021 · 0 comments
Open

Suggestion to use c-style for loop #7

Joe23232 opened this issue Oct 29, 2021 · 0 comments

Comments

@Joe23232
Copy link

Joe23232 commented Oct 29, 2021

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
{

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant