Hacker News new | past | comments | ask | show | jobs | submit login

Yup. C# likewise described the change in semantics as just a different de-sugaring of their for each loop when that happened.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: