lua-users home
lua-l archive

Re: Proposal: Trailing comma in function calls

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




On Thursday, June 5, 2014, Dirk Laurie <dirk.laurie@gmail.com> wrote:
2014年06月05日 9:50 GMT+02:00 Axel Kittenberger <axkibe@gmail.com>:

> While I'd appreciate something like that can we please keep some focus on
> the original proposal?

I'm happy with the table constructor allowing an extra delimiter precisely
because {a,b,c}, {a,b,c,} and {a,b,c,nil} all do the same thing, and I am
not happy with the original proposal because for f(...), the difference
between f(a,b,c) and f(a,b,c,nil) can be detected by select('#',...).


His suggestion is that the trailing comma does not result in an extra nil.  

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