News for hackers. Stuff that matters.
Re:Go: Redefining For Loop Variable Semantics by tialaramex on Wednesday October 12, 2022 @04:43AM (#33174430)
Yup. C# likewise described the change in semantics as just a different de-sugaring of their for each loop when that happened.
Re:Go: Redefining For Loop Variable Semantics by Blikkentrekker on Wednesday October 12, 2022 @06:16AM (#33174930)
Which makes it more confusing why it was originally as it was because it's really not harder to implement as any compiler implements it as desugaring before optimizations een occur and this form is simpler.

The only explanation I see is that they really gave it no thought at all whatsoever and it wasn't a tradeoff but simply not thinking clearly.