However, probably due to my inexperience in creating programming languages, i cannot think of reasons for this kind of decisions.
What could these be?
However, probably due to my inexperience in creating programming languages, i cannot think of reasons for this kind of decisions.
What could these be?
https://docs.python.org/3/reference/simple_stmts.html#global
https://docs.python.org/3/reference/simple_stmts.html#nonloc...
Classic example: http://stackoverflow.com/questions/9264763/unboundlocalerror...
If you search for UnboundLocalError on StackOverflow, there are 918 results. Not all of them are due to this particular scoping ambiguity, but many of them are.
are you sure about this for explicit variable declaration? In my experience the problem is more with autovivification than with declaration-is-initialization.
I'm not sure I can think of any languages at all that have dynamic scoping since the early lisps.