Don't know if you saw the discussion in the PEP or not. I made two arguments for being able to assign to variables bound in enclosing scopes. 1. Every other language that supports nested lexical scoping allows this. To the extent that programmers have seen these other languages, they will expect it to work. 2. It is possible to work around this limitation by using containers. If you want to have an integer that can be updated by nested functions, you wrap the interger in a list and make all assignments and references refer to list[0]. It would be unfortunate if programmers used this style, because it is obscure. I'd rather see the language provide a way to support this style of programming directly. Jeremy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4