Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Lua 5.2 added "goto", which basically solves the lack of "continue". LuaJIT supports it too.


modify the luajit frontend. Added continue and != and some other weirder syntactic sugar, was only a half dozzen lines of code.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: