3 ms·
BTW this is actually being addressed, specifically the for loop now essentially captures by value instead of by reference. I believe no real working programs we
by nasretdinov 3y ago
BTW this is actually being addressed, specifically the for loop now essentially captures by value instead of by reference. I believe no real working programs were affected by the change, except for maybe fixing bugs in them.
Proof: https://go.dev/blog/loopvar-preview https://go.dev/blog/loopvar-preview