lua-users home
lua-l archive

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


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
Python intended.)

If Lua did have a list, then it would have to have a special
syntax to go with it.

-- 
Aaron