-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Milestone
Description
@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).
komuw, mvdan, batazor, eliben, rajender and 25 moreearthboundkid, mdlayher, mpx, meling, AlekSi and 13 morebcmills, rajender, oncilla, thepudds, haunt98 and 3 more