[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Idea: 'function' keyword optional when preceded by 'local'
- From: Romulo <romuloab@...>
- Date: Wed, 6 Jul 2011 16:47:34 -0300
On Wed, Jul 6, 2011 at 16:32, David Hollander <dhllndr@gmail.com> wrote:
> Now let's say I am parsing the following:
> "local success(items, total)"
But then, this syntax already has a meaning:
local f( val or default ):method()
is
local f;
( val or default ):method()
Of course, ( val1, val2 ):method() is syntatically invalid, but it
takes a lookahead parser to know that, and even if you use the simple
form, the ambiguity is still there.
--rb