lua-users home
lua-l archive

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


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}