lua-users home
lua-l archive

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


Rici Lake wrote:
>
> Rici coughs and points out that functional tuples wouldn't have the 
> problem Wim pointed to, and would be a more general solution.

Maybe.  But the whole point of the change is to avoid allocating
a (usually short-living) heap object on each vararg-function
invocation.

Your tuple proposal just introduces a new datatype.  All the
syntax extensions could equally well be implemented for tables.
Where's the tuple variant better than a regular table?  Any
performance differences would only be implementation details.

Ciao, ET.