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

It's even worse in python where loops do not even create a new scope and assign on each iteration. From reading this Go creates a scope for the entire loop, but assigns rather than initializes on each iteration.

Then again, Python has the same syntax for assignment and initialization.




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

Search: