lua-users home
lua-l archive

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


On Thu, Nov 28, 2013 at 5:44 AM, John Hind <john.hind@zen.co.uk> wrote:
> Date: Wed, 27 Nov 2013 22:11:05 +0100
> From: Philipp Janda <siffiejoe@gmx.net>
> Subject: Re: table library changes (was Re: table.new in 5.3?)

> I'd call it array library because I associate the term "list" with
> single- or double-linked lists.
> But then there aren't that many essential non-array functions on tables
> ... I'd be ok with `raw{g,s}et` and `next` moving to the table library
> (or even the debug library), but e.g. `pairs` and `ipairs` certainly
> belong to the base library, IMHO.

I'd be happier with "vector" - "array" implies 2 or more dimensions to me and there are already several useful 3rd party "array" libraries which implement 2 or multiple dimensions. But I defend "list" - in OO parlance "list" should really be an ancestor of "single-linked-list", "double-linked-list" and maybe "brute-force-and-ignorance-list" for the current implementation ;-].



There's also the term "sequence."