lua-users home
lua-l archive

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


> Hmmm... could this not be solved by having two different types of table
> constructors? One has the mandatory comma-separated syntax, the other
> one uses spaces, but doesn't support all types of indexes.

> Lika, say:

> t = << a = << foo = 1 2 3 >> b = "hello" >>

That makes me want to read the inner table as foo = {1, 2, 3}

I think it's easier to tell people to use commas :)

R.