r/lua • u/DrSergei • Feb 26 '26
Help Why is there NO "continue" in Lua?
I was stunlocked to find out that there is no "continue" instruction for loops in Lua. Why is that? It seems so natural to have it.
I saw some scripts where goto is used for mimicking continue statements, but It's honestly not the so;ution I would comfortably accept...
26
Upvotes
View all comments
Show parent comment
3
u/BigBossErndog Feb 27 '26
There's just certain things that would make life so much easier in Lua though. Like continue, instead of placing goto everywhere. Or an increment operator, long_name_variable = long_name_variable + 1 is kinda annoying to type out every time.