lua-users home
lua-l archive

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


Hallo,

On Tue, Feb 21, 2012 at 11:27 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
>
> True, but I'm thinking of the common operation of creating a new list
> by prepending an element.  It would certainly generate a lot of
> temporaries if you were using Lua tables!   Lua strings are immutable,
> but we quickly learn to build them using tables, not concatenation.
>

Indeed, for Lua immutable by default may not be a good fit as it is
for Scheme or ML.

-- 
-alex
http://www.artisancoder.com/