The Go team plans to change the scoping of for loops in Go 1.22 to fix a common mistake where the loop variable is referenced after its iteration. This change will only apply to new or updated code, with old code remaining unaffected. The new semantics can be previewed in Go 1.21 by setting the GOEXPERIMENT environment variable. This change aims to prevent production problems caused by this mistake and remove the need for imprecise tools that prompt unnecessary code changes.