[Python-ideas] Proposal for Ruby-style anonymous block functions (that don't kill the indention)
Jan Kanis
jan.kanis at phil.uu.nl
Fri Nov 14 15:09:11 CET 2008
On 14/11/2008, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Jan Kanis wrote:
>> One major technical problem with this is that it would stop the python
>> grammar from being LL1
>
> Not necessarily. You could just allow any expression-statement
> to be followed by a block, and sort out whether it makes sense
> later on.
Hm, hadn't thought about it in that way. Doing so now, if we follow
this train of thought to it's ultimate conclusion everything is LL1,
just parse the file as a sequence of characters and sort out whether
they make sense later on :) .
Jan
More information about the Python-ideas
mailing list