[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (alpha-rc2) now available
- From: Petite Abeille <petite.abeille@...>
- Date: Fri, 19 Nov 2010 23:01:47 +0100
On Nov 17, 2010, at 6:02 PM, Luiz Henrique de Figueiredo wrote:
> All feedback welcome. Thanks.
Not sure when the change was made, but I noticed that Lua 5.2.0 allows the following syntax:
print
(
'foo'
)
Before, in 5.1, this would have resulted in an exception:
ambiguous syntax (function call x new statement) near '('
Is that change on purpose? Or accidental?
I personally like it as it allows one to indent the function parentheses the only way Nature intended! :P