|
|
|
|
|
by coldtea
1957 days ago
|
|
>If you have automatic block-level scoping, then you have the opposite problem - you need to do extra leg-work to communicate a value to the surrounding scope. In the general case, you just declare the variable in the surrounding scope and then affect it in the lower one, no? |
|
But yes, block-level scoping (as in C for example) would be useful too in addition to existing whole-function scoping discipline.
Again, I'm looking for similarly-minded people to move this idea forward. If interested, please find me on the python-ideas mailing list for discussing details.