lua-users home
lua-l archive

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

"Jerome Vuarand" <> wrote/schrieb <>:

> Imperative style don't imply functionnal style, and in pure
> imperative style you got full control on execution path.

In functional style you can have the same effect by programming in CPS
(continuation passing style). Lua is appropriate to program in CPS,
because of tail call elimination (stack will not overflow). When
programming in CPS, the problem how to get out of a nested loop will
no longer exist.