- cross-posted to:
- golang@lemmy.ml
- cross-posted to:
- golang@lemmy.ml
You must log in or register to comment.
So it's not really a problem with for loops, it's a problem with closures inside for loops.
As someone just learning Go, the current behaviour is really unexpected. I’m happy that they are changing it.
Much needed change, I wish they made it apply for all go versions though