lua-users home
lua-l archive

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

David Kastrup <> writes:

> Drake Wilson <> writes:
>> Quoth David Kastrup <>, on 2010-11-27 21:37:44 +0100:
>>> The Lua approach would be to _make_ functions tables.  Then one need not
>>> worry about one being supported differently from the other.
>> That seems quite bizarre to me, and perhaps more Tcl-esque.  Could you
>> describe what you mean in more detail?
> No, I couldn't.

Well, let's say that an array is quite like a memoized function and take
it from there.  But I have no idea where we'll end up.

> It is just an observation that Lua has a tendency not to make you
> choose.  You don't pick between arrays and structures, for example.
> On a less bizarre tangent, I expect threads and functions to become the
> same eventually.

David Kastrup