lua-users home
lua-l archive

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


I would personally not like as it makes the syntax inconsistent, in this case sometimes it is mandatory and sometimes it isn't. Consistency has a lot of benefits.

Robert

----- Original Message -----
> > Personally I'd be in favor of dropping the option of no parentheses
> > from
> > function calls if I could drop all commas from the language.  This
> > would break
> > compatibility with existing code but the fix would be trivial.
>
> A better compromise would be a allow removal of comma only after the
> key-value syntax
>   key = value
> or (why not)
>   ["key"] = value
>
> But not for array syntax
>  t = { 3 2 1 'Boom' }
>
>