[[Go]]'s language gotcha until Go 1.22. [link](https://go.dev/blog/loopvar-preview). > [!thought] [[2024-06-03]] > Much pleasant to use Go after this change. I don't need to worry about this while passing pointers or starting goroutines, as it behaves exactly I want. # References - https://github.com/golang/go/discussions/56010#discussioncomment-3788526 - https://ericlippert.com/2009/11/12/closing-over-the-loop-variable-considered-harmful-part-one/