Hello there,
The lack of continue
keyword on Lua 5.1 really bothers me when targetting HTML5 or iOS. The workarounds for enabling a continue
-like on Lua 5.1 can result in sort of incomprehensible code.
When researching for alternatives to continue
, you’ll find:
- using
goto
(which also do not work on HTML5/iOS) - wrapping the code in
repeat
/until true
, andbreak
it - which doesn’t let you break the outer loop unless you have a variable to flag and break yourself in the outer scope.
I know this must be no easy task given the dimensions of Defold’s codebase. Just wanted to shout out here.
Cheers!