News for hackers. Stuff that matters.
Re:Go: Redefining For Loop Variable Semantics by maxloh on Tuesday October 11, 2022 @02:24PM (#33167030)
It is a scoping problem IMO. In JavaScript variables are block-scoped, i will be out of scope after the loop.

It would be better if Python could support block-scoping too. (Maybe it is time for inventing a "strict mode" for Python)

There are no comments on this comment yet.