lua-users home
lua-l archive

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

On 13. May 2022, at 6.46, Egor Skriptunoff <> wrote:

Of course, Lua can disallow using the "continue" keyword in some loops and allow it in other loops, but it looks too weird to be included in the language, instead another weird but versatile operator ("goto") was introduced.

Luau has continue and practically speaking it does not create any confusion or weirdness than I’m aware of. It raises an error in the repeat case. Continue is also not a keyword, so it does not break existing scripts using continue as a identifier. I like it.