lua-users home
lua-l archive

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


On 29.07.2016 09:34, Dirk Laurie wrote:
2016-07-29 8:20 GMT+02:00 Thomas Jericke <tjericke@indel.ch>:

Anyway I am currently think {(1, 2, 3)} is the more intuitive array
constructor syntax. This because (1, 2, 3) is already the syntax for an
argument list.
To me {(1, 2, 3)} reads like: I have this list here that you should back me
into a table please.
The most intuitive array constructor syntax is

     Array{1,2,3}

especially in a context where you also have

     Deque{1,2,3}
     Stack{1,2,3}
     List{1,2,3}
     Set{1,2,3}

That's a function call with a table as argument. I can't use that for a parser patch.

--

Thomas