Code block literals

Alex Martelli aleax at aleax.it
Fri Oct 10 12:28:11 EDT 2003


Bengt Richter wrote:
   ...
> This way lambda would only be needed for backwards compatibility, and
> since "def(" is a syntax error now, IWT it could be introduced cleanly.

In theory, yes, I think it could (and wrt my similar idea with 'do' has
the advantage of not requiring a new keyword).  In practice, trying to
hack the syntax to allow it seems a little nightmare.  Wanna try your
hand at it?  I'm thinking of Grammar/Grammar and Modules/parsermodule.c ...


Alex





More information about the Python-list mailing list