lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Sep 10, 2014 at 10:28 AM, Axel Kittenberger <axkibe@gmail.com> wrote:
> The question should rather be, why do you need brackets for this?
>
> I'd expect
>
> '5':rep( 10 ).
>
> to work.

IIRC, the prefixexp grammar was designed this way to avoid an
ambiguity in certain cases. I don't know what those cases are offhand,
but I'm sure it wouldn't take that much to look it up in the ML
archives.

/s/ Adam