On Mon, Oct 4, 2021 at 2:02 AM Jonathan Crall <erote...@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
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/SMWWKPP6U7QTKI4FXWBUIGPV6RUWJ34G/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to