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

proposal: cmd/compile: add GOEXPERIMENT=loopvar #57969

Open
rsc opened this issue Jan 24, 2023 · 1 comment
Open

proposal: cmd/compile: add GOEXPERIMENT=loopvar #57969

rsc opened this issue Jan 24, 2023 · 1 comment
Labels
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Jan 24, 2023

@dr2chase has been working on an implementation of the for loop scoping change in discussion #56010. Before we get to a formal proposal, it would be good to make the code available for people to try in their own code. I propose we add the change behind a GOEXPERIMENT=loopvar setting, so that developers can judge the effect in their own code, including in the Go 1.21 release (by setting the environment variable and recompiling).

@gopherbot gopherbot added this to the Proposal milestone Jan 24, 2023
@gopherbot
Copy link

Change https://go.dev/cl/411904 mentions this issue: cmd/compile: experimental loop iterator capture semantics change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Incoming
Development

No branches or pull requests

2 participants