spacedogroy@feddit.uk to Golang@programming.devEnglish · 1 year agoFixing For Loops in Go 1.22 - The Go Programming Languagego.devexternal-linkmessage-square4fedilinkarrow-up131arrow-down10cross-posted to: [email protected][email protected][email protected][email protected]
arrow-up131arrow-down1external-linkFixing For Loops in Go 1.22 - The Go Programming Languagego.devspacedogroy@feddit.uk to Golang@programming.devEnglish · 1 year agomessage-square4fedilinkcross-posted to: [email protected][email protected][email protected][email protected]
minus-squaremrkite@programming.devlinkfedilinkarrow-up7·1 year agoSo it’s not really a problem with for loops, it’s a problem with closures inside for loops.
So it’s not really a problem with for loops, it’s a problem with closures inside for loops.