[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Tagged loops (was RE: [PATCH] experimental php-like 'break N' to break acrossmultipleloops)
- From: Thomas Hafner <thomas@...>
- Date: 02 Nov 2006 11:15:33 +0100
"Jerome Vuarand" <firstname.lastname@example.org> 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.