[Python-ideas] Syntax for late-binding of arguments [was: Default arguments ...]

CTO debatem1 at gmail.com
Sat May 16 01:36:13 CEST 2009


On May 15, 6:03 pm, Tennessee Leeuwenburg <tleeuwenb... at gmail.com>
wrote:
> How about changing the '=' sign, i.e.
> def (foo <= []):
>   #stuff
>
> i.e. instead of foo 'equals' [], foo 'gets' an []
>
> -T

I see :: as having the advantage of not being used for anything
currently, as well as being vaguely reminiscent of :=, which wouldn't
be too bad either.

It would also leave the door open to adding thunks to the language
as a whole rather than just here, and assuming (warning! possibly
invalid conclusion ahead!) that this would require thunks to work,
that seems like a good idea to me.

Geremy Condra



More information about the Python-ideas mailing list