lua-users home
lua-l archive

Re: [Pythonic] Are empty tuple and array literals syntactically incompatible?

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


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.

AltStyle によって変換されたページ (->オリジナル) /