lua-users home
lua-l archive

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


On Tue, 28 Feb 2023 at 20:40, Lars Müller <appgurulars@gmx.de> wrote:
>
> which would benefit from a trailing comma (which should also be added for consistency with the trailing comma in arglists):
>
> function f(
> a, -- a comment for a
> b, -- a comment for b
> )
> ...
> end

what about:

function f(
    a, -- a comment for a
    b, -- a comment for b
nil)


(i'll be the first to accept that it looks weird)


-- 
Javier