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

for range start:end:step #865

Closed
xushiwei opened this issue Nov 5, 2021 · 0 comments · Fixed by #872 or #877
Closed

for range start:end:step #865

xushiwei opened this issue Nov 5, 2021 · 0 comments · Fixed by #872 or #877

Comments

@xushiwei
Copy link
Member

xushiwei commented Nov 5, 2021

Proposal

for i <- start:end:step {
    ...
}

for i := range start:end:step {
    ...
}

for range start:end:step {
    ...
}

For example:

for range :100 {
    ...
}

Background

None

Workarounds

for i := 0; i < 100; i++ {
    ...
}
@xushiwei xushiwei changed the title for range start:end:step for range start:end:step Nov 5, 2021
@xushiwei xushiwei added this to the Go+ v1.1 milestone Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant