[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Cons, tuple and __slots__ -- a simple mechanism to implement them in Lua
- From: Javier Guerra Giraldez <javier@...>
- Date: Fri, 16 Sep 2011 15:12:50 -0500
On Fri, Sep 16, 2011 at 2:39 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> (Note that it is already easy to implement tuples using C closures; see
> PiL 2nd edition page 255.)
as a facility for users, yes; but not as a 'lighter than tables' data type.
as much as i'd like to see real tuples in Lua (as the type of ... ), i
feel that the usage presented by Xavier should be better served by a C
library. or, if performance is critical, as a patch to the core; not
as part of Lua. (at least until a general redesign of language
primitives)
--
Javier