|
Am 14.07.2016 um 10:13 schröbte Egor Skriptunoff:
On Thu, Jul 14, 2016 at 11:01 AM, Daurnimator <quae@daurnimator.com> wrote:
Three reasons:
Maybe, {1, 2, 3} for tables, @{1, 2, 3} for arrays (with array metatable
applied)?
In that case, why not use the already valid: S(1,2,3)
1) Standardization of array type in Lua (all the developers will use the
same implementation of arrays)
2) Avoidance of performance penalty due to passing vararg to a function
What performance penalty?
`f@{ 1, 2, 3 }` isn't that much better, though ...