3 Oct
2021
3 Oct
'21
10:45 a.m.
On Mon, Oct 4, 2021 at 2:02 AM Jonathan Crall <erotemic@gmail.com> wrote:
@Marc-Andre
One of the motivations of this proposal is to incentivize writing code in a local scope, rather than a global one. People in this thread have made the argument "Python is a scripting language, so it should do that". Ok, fine. Yes `print('hello world')` is more idiomatic than the one inside of a function, but any real work done in Python quickly discards that global simplicity.
If it's already true that real work discards the simplicity of working at global scope, then why "incentivize" local scope? Scripts that need to use functions already do. Scripts that don't.... shouldn't be punished for it. ChrisA