golang-samples icon indicating copy to clipboard operation
golang-samples copied to clipboard

Prepare for Loopvar scope change

Open muncus opened this issue 2 years ago • 1 comments

go 1.21 includes an experiment to evaluate a proposed change in variable scoping of for loops: https://github.com/golang/go/wiki/LoopvarExperiment

before 1.22 is released, we should run all tests in this repo with this experiment enabled, to get a sense for whether it will work, and what side effects it may have.

Followup bugs can be filed for any issues identified.

muncus avatar Sep 18 '23 21:09 muncus

Listing as p1 for now until we can determine if this blocks adoption of 1.22. if we're ok to move forward, we can downgrade to p2.

muncus avatar Sep 18 '23 21:09 muncus

this looks to be a noop for our current tests, as determined by testing in #3756

muncus avatar Apr 10 '24 20:04 muncus