[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua design : why no lists ?
- From: "Aaron Brown" <aaron-lua@...>
- Date: Tue, 14 Sep 2004 12:07:55 -0400
Philippe Fremy wrote:
> The absence of list surprise me. A list is quite a common
> need and implementing the current list on top of tables is
> not as convenient and as simple as a real list.
I think the idea is that Lua has one and only one structured
datatype from which you can "roll your own" list, set, bag,
tree, array, queue, etc. with whatever optimization you
want. This keeps Lua's syntax very simple, but it is of
course a contrast to the Python approach. (No disrespect to
If Lua did have a list, then it would have to have a special
syntax to go with it.