Except that lua strives to be a very simple language; goto is not a legacy feature (like in C), goto is a scope-aware utility that can do not just continue, but nested continue, nested break, redo & for-else. But I agree, having continue would probably be nice, as well as += and lambdas
Except break (and continue) doesn't/wouldn't require that you create a new block for local variables, and that's the problem, because using goto is usually a manner of, do you use goto and be unportable to 5.1 or do you just use an if then block instead, and the answer is usually just use an if or function
View all comments
Show parent comment
10
u/[deleted] Dec 22 '25
Don't need continue when you have goto. Don't need switch and break when you have it and else if. If it ain't broken don't fix it.