Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

After I wrote my reply I played around with some C# and found to my surprise that foreach does in fact provide a new variable to be captured on each iteration, so clearly this is a design decision that varies between languages.


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

Search: