lua-users home
lua-l archive

Re: Tagged loops (was RE: [PATCH] experimental php-like 'break N' to break acrossmultipleloops)

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


"Jerome Vuarand" <jerome.vuarand@ubisoft.com> wrote/schrieb <6EB652BF05BEE44FA2A29B23F3A7152806338F1E@UBIMAIL1.ubisoft.org>:
> 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.
Regards
 Thomas

AltStyle によって変換されたページ (->オリジナル) /