lua-users home
lua-l archive

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


Yes, I'm a beginner at Lua, and I already love "goto" with labels, as a way to control looping.

- Brandon

On Tue, Sep 18, 2018, 2:27 PM Oliver Kroth <oliver.kroth@nec-i.de> wrote:


Am 18.09.2018 um 20:15 schrieb Jim:
> how about adding a "continue" statement to loops ?
> (yes, i know it can be achieved with "goto")
>
Better leave the goto than open the can of worms with directional break
and continue (break out of inner loop, continue with outer, or directly
breal out of outer loop)
The goto may be easier to understand, especially for people programming
not so often.

I also wanted to have continue, but goto continue is OK to me.
--
Oliver