lua-users home
lua-l archive

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


* Luiz Henrique de Figueiredo:

> One argument for not supporting this is that argument lists are almost never
> generated automatically, which was the original motivation for supporting
> trailing commas in table constructors, as this simplifies code generation.
>
> Another is that argument lists in practice are never very long.

And they are rarely split as one item per line.  For tables, the
trailing comma reduces visual clutter in diffs if there's one item per
line.