3 ms·
Yup. C# likewise described the change in semantics as just a different de-sugaring of their for each loop when that happened.
by tialaramex 4y ago
Yup. C# likewise described the change in semantics as just a different de-sugaring of their for each loop when that happened.
- Blikkentrekker 4y agoWhich 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.