On Fri, Nov 5, 2021 at 7:36 AM Rob Cliffe via Python-ideas
<python-ideas@python.org> wrote:
> But consider this: AFAICS, *everything* you can do with early binding, you 
> can do with late binding, but *not* vice versa.  (To simulate early binding 
> if you actually only have late binding, simply put the default value in a 
> global variable which you never change, and use that global variable as your 
> default value.  As is commonly done today.)
>

Everything you can do with either, you can do with the other. You just
demonstrated one way, and if globals won't work, closures will.

It's all about expressiveness and clarity of intent.

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/2OI6SZ2CDBHW56DVR4YTLIADMULXHWCD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to