lua-users home
lua-l archive

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


Sure, but I think the question would more accurately be, "would allowing _any kind_ of these literals introduce an ambiguity", as this is a case that might not have been considered.

On Fri, Jul 6, 2018 at 12:31 PM Jay Mithani <jayvmithani@gmail.com> wrote:


On Jul 6, 2018, at 6:35 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

>>   x = []
>
> x = [[1]] is already a string, not a nested tuple. Requiring x = [ [x]
> ] seems weird.
>

In the statement x = [[]], the outer tuple is not empty. Therefore I do not think this presents a conflict.
--
--
Ryan | Charles <vandor2012@gmail.com>
Software Developer / System Administrator
https://hashbang.sh
https://getmediapanel.com