Lua is weird. Here's why:
- No () around conditions
- No curly brackets
- No ++ operator
- != is ~=
- Array starts at 1
- No semicolons needed
All I could think of, it's weird but I still use this language 😵

  • 18
    Appart from the ~= and arrays starting at 1, I see the problem with that. The others are pretty common place in recent languages. I do miss the ++ operator whenever I use python
  • 4
    @CptFox less error prone. Also arrays from 1 are very usefull when dealing with math and algorithms.
    God bless Julia for index counting from 1.
  • 2
    @Lahsen2016 xD
  • 4
    Lua was made by Brazilian students. That's why it is weird.
  • 1
    What does ~= mean? Never seen it before.
  • 7
    Arrays at 1?
  • 2
    @zshh it's lua's !=
  • 2
    Try moonscript it helps :) plus the lapis framework.
  • 2
    I hate dependency management in Lua. Luarocks doesn't rock.
  • 6
  • 2
    @bittersweet I never had an issue
  • 1
    @michaelm there's also openresty for lua :)
  • 1
    @sour yup can't live without it. Lua rocks does work though but it's real crappy to use, but as soon as you have it working its fine.
  • 2
    Am I the only one who likes Lua? :(
  • 1
    @Tytanium I started with Lua, and I still use it to store personal data,for example player stats.
    I never said being weird is a bad thing 😉
  • 1
    () around if conditions are optional. They are still interpreted
  • 1
    @michaelm holy snap are you a unicorn?
  • 0
    @AleCx04 Nah man. I have spend some time automizing this kind of stuff. It took a while but found out how it worked. Now I have unit tests package automation and moonscript transpiling into a docker container with this.
    So for me not all the quality gates are there but at least it’s better then vanilla Lua.
Your Job Suck?
Get a Better Job
Add Comment