lua-users home
lua-l archive

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


Charles Engelhard <ochuckles@gmail.com> wrote:

> - It's a missed opportunity to have the power of Scheme-style continuations
> with an understandable interface.

I think this is a contradiction in terms. Continuations need to be tamed
in some way to be understandable. For instance, Lua's coroutines are
essentially one-shot continuations.

Fully general first class continuations are difficult to implement
efficiently. They either put enormous stress on the garbage collector
or they require some kind of stack copying.

Lua also needs to work in a standard C environment which means there would
have to be some awkward restrictions on continuations.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Lundy, Fastnet, Irish Sea: Variable mainly northeast, 3 or 4. Slight or
moderate. Showers. Moderate or good.