DEV Community

Discussion on: 5 reasons you should learn Lua

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

It's been a little while since I commented about wanting to learn Lua. I lovit ha, see what I did... Anyway I'l start with what I dislike.

  1. ~= is not !=
  2. Braces are not a thing, I write in braced languages and I find this a little jarring.
  3. require is not node js require

What I love, Lua is tiny, fast and I can change it as I like. I'm currently hijacking V8 to launch the majority of my node js web app in Lua. That includes using the c binding directly from node with node require and a js proxy.

Because why not, it's fun.

Collapse
 
jwoertink profile image
Jeremy Woertink

Awesome! Yeah, I agree with the ~= thing. That throws me off all the time especially since my main languages (Ruby & Crystal) use =~ for regex matching lol. But I don't work in curly brace languages, so for me I love that it doesn't have those :D

Sounds like you found a great use for using Lua! Thanks for sharing.