4 ms·
I'd like to use Lua, partly to take advantage of LuaJIT and partly because it's an interesting language, but it drives me crazy that it lacks things like 'conti
by comex 14y ago
I'd like to use Lua, partly to take advantage of LuaJIT and partly because it's an interesting language, but it drives me crazy that it lacks things like 'continue' and '+='. Maybe I should use MoonScript, but that completely discards Lua's aesthetics, which is hardly better.
- fuzzythinker 14y agomoonscript to the rescue! http://moonscript.org/reference/#update_assignment http://moonscript.org/reference/#update_assignment
- pheon 14y agomodify the luajit frontend. Added continue and != and some other weirder syntactic sugar, was only a half dozzen lines of code.
- catwell 14y agoLua 5.2 added "goto", which basically solves the lack of "continue". LuaJIT supports it too.