3 ms·
Those are all very important comparisons (and I would add that both Lua and JS got the global by default thing wrong0. I would note that ES6 requires proper tai
by hajile 12y ago
Those are all very important comparisons (and I would add that both Lua and JS got the global by default thing wrong0. I would note that ES6 requires proper tail calls and that trampolining can accomplish tail call elimination (tail call elimination is different than proper tail calls).
The major issue to me is time. I know quite a few languages, but have only mastered a couple. JS is everywhere and the browser makes sure this will be the case for a long time.
The issue is that these advantages do not outweigh the ubiquitous nature of JavaScript. If I already need to learn all of those JS quirks, why learn Lua too?
- chii 12y agobecause learning isn't something you stop doing? Also, lua is a nicer language, and if you have the choice, you should chose it over js.
- Aldo_MX 12y ago> Also, lua is a nicer language, and if you have the choice, you should chose it over js. Sorry, but I prefer the nasty language with 0-indexed arrays.
- icebraining 12y agoThe issue is that these advantages do not outweigh the ubiquitous nature of JavaScript. If I already need to learn all of those JS quirks, why learn Lua too? In my case, because Awesome is a nice window manager.
- brennen 12y agoQuite true. Although on this theory, I should really have learned some Haskell by now. And yet. Every trip to the xmonadrc is a fresh glimpse at the depths of my own ignorance.
- raffomania 12y agoI still think that https://love2d.org/ https://love2d.org/ is one of the easiest, most fun and rewarding ways of stepping into game programming (especially when compared with the currently existing JS Game Dev Frameworks).
- pedroo 12y ago> (tail call elimination is different than proper tail calls). I'm not sure I follow. What is the distinction here?