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

Agreed. And: > C# sucks because: > You can't assign a new value inside a foreach loop > (e.g. foreach(int i in vec) { i = i+1; }).

LOL



You can't do this in a lot of languages. Python comes to mind too.


Well, exactly. It's a bad idea...




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: