On Jul 2, 2014, at 8:56 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
2014-07-02 13:51 GMT+02:00 David Demelier <demelier.david@gmail.com>:
I don't know any other language that use goto continue or goto break to
control the loop, it's just a bloody idea.
Lua 5.2 uses "goto continue" if you want to, and implicitly translates
"break" to "goto break" whether you want to or not. The opportunity
to provide a "continue" keyword in Lua 5.3 seems not to have been
taken.
So basically my post says: if you can't beat them, join them.
If you are forced to type "goto continue", at least be spared
the trouble of inserting ::continue::. It *is* just an idea.
If you are going to hack your copy of Lua to implicitly add a `continue` label then why wouldn't you just add the `continue` keyword and save the ugliness that is `goto continue`?