4 ms·
> In Go 1.22, each iteration of the loop creates new variables This was previously discussed here: https://news.ycombinator.com/item?id=33160236 https://news.
by omoikane 3y ago
> In Go 1.22, each iteration of the loop creates new variables
This was previously discussed here:
https://news.ycombinator.com/item?id=33160236 https://news.ycombinator.com/item?id=33160236 - Go: Redefining For Loop Variable Semantics (2022)