spacedogroy@feddit.uk to Golang@programming.devEnglish · 10 months agoFixing For Loops in Go 1.22 - The Go Programming Languagego.devexternal-linkmessage-square4fedilinkarrow-up132arrow-down10
arrow-up132arrow-down1external-linkFixing For Loops in Go 1.22 - The Go Programming Languagego.devspacedogroy@feddit.uk to Golang@programming.devEnglish · 10 months agomessage-square4fedilink
minus-squaremrkite@programming.devlinkfedilinkarrow-up7·10 months 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.