
Nov. 4, 2021
11 p.m.
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