[Python-ideas] An alternative to PEP 572's Statement-Local Name Bindings

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 3 19:58:55 EST 2018


Robert Vanden Eynde wrote:
> The "make it a keyword in a context" might lead to things like 
> "print(where where where = where)", not sure you'd want that :)

What the heck, if it was good enough for PL/1...

> But that's just a choice of syntax,

Choice of syntax is important, though. It's all very well
to come up with an "insert syntax here" proposal that has
some big obvious benefit, but if you can't actually come
up with a pleasing syntax for it, then it won't fly. So
it makes sense to consider potential syntaxes along with
other aspects of a proposal.

-- 
Greg


More information about the Python-ideas mailing list