3 ms·
Yes, the loopvar change will break some programs, and hence the compatibility promise. But the Go team argues that the change will fix much more programs than i
by beltsazar 3y ago
Yes, the loopvar change will break some programs, and hence the compatibility promise. But the Go team argues that the change will fix much more programs than it will break [1].
This makes me wonder, though, what guarantees that a similar breaking change won't ever happen again in the future? If any change with #(programs fixed) >> #(programs broken) is accepted, we might as well remove the compatibility promise page [2].
---
[1] https://github.com/golang/go/issues/60078 https://github.com/golang/go/issues/60078
[2] https://go.dev/doc/go1compat https://go.dev/doc/go1compat