[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua design : why no lists ?
- From: "Wim Couwenberg" <wcou@...>
- Date: Wed, 15 Sep 2004 16:26:52 +0200
Please note that if you use a table as a list to store items at positions 1
to N it *is* actually implemented as a list (array of values). It's just
that Lua's implementation is opaque for the programmer in order to offer a
simple unified interface. (There is some heuristic involved to place
numeric indices either in the array part or hash part of a table.) Have you
ever profiled Lua against Python in some actual scenario's involving lists?