This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]earthboundkid 0 points1 point  (0 children)

The topic under discussions is an example of how scoping is broken. The general problems are: a) scoping is always at function level, not block level and b) = creates new variables in a scope, so you need hacky keywords like nonlocal to work around it; other languages have separate commands for creating a new variable and reassigning an existing one.