lua-users home
lua-l archive

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


Tony Finch <dot@dotat.at> writes:

> On 27 Nov 2010, at 20:37, David Kastrup <dak@gnu.org> wrote:
>> 
>> The Lua approach would be to _make_ functions tables.  Then one need not
>> worry about one being supported differently from the other.
>
> I think Lua is more pragmatic than that. There are important
> differences in efficiency between functions and tables:

There are also important differences in efficiency between arrays,
structures, lists, hashes.

To the degree where the Lua implementation has an array part in its
tables.  But the point is that this has been made transparent to the
language.

-- 
David Kastrup