News for hackers. Stuff that matters.
Re:Understanding a Python Closure Oddity by abecedarius on Monday June 17, 2024 @08:40PM (#40712870)
> for changes the variable

That's a design decision, not a law of nature. JS 'for let' lacks this problem; probably the committee would have named it just 'for' if not for legacy.

There are no comments on this comment yet.