[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (alpha-rc2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 22 Nov 2010 10:28:33 -0200
> Checking my other pet-peeve I noticed that it's still there:
>
> print("%d":format(42)) --> error: ')' expected near ':'
> print(("%d"):format(42)) --> 42
>
> I still have to add these superfluous parentheses around the string.
> As far as I can see, there's no real reason for the parentheses.
>
> I've attached a patch to remove this requirement (patch1).
Please, do not send patches; they show the implementation, not the idea.
For what you are proposing, a BNF would be more useful. Show how Lua's
BNF should be modified.
-- Roberto