[Python-ideas] Crazy idea: allow keywords as names in certain positions
rhodri at kynesim.co.uk
Mon May 14 07:35:10 EDT 2018
On 13/05/18 19:19, Guido van Rossum wrote:
> The idea I had (not for the first time:-) is that in many syntactic
> positions we could just treat keywords as names, and that would free up
> these keywords.
I'm not familiar with the innards of the parser and it's waaaay too long
since I sat through a parsing course, but can you turn that inside out?
Are there times when the compiler knows it must be looking at a keyword,
not a name? I suspect not, given that arbitrary expressions can be
statements, but someone else may have a more knowledgeable opinion.
Rhodri James *-* Kynesim Ltd
More information about the Python-ideas