r/lua • u/jadfe1234 • Jan 01 '26
What are some of your problems with lua?
Love2d and other libraries are welcome but just say what library your talking about
23
Upvotes
r/lua • u/jadfe1234 • Jan 01 '26
Love2d and other libraries are welcome but just say what library your talking about
View all comments
Show parent comment
1
u/didntplaymysummercar Jan 02 '26
IMO requiring spaces for nested arrays wouldn't be that bad and it'd break no code. Plus Lua minor versions sometimes do break code, so removing
[[would also work and be within that.Same for adding
!=- Lua already added a few binary data operators and a floor division operator, and~=looks confusing, like Bash's or Perl's regex match, is harder to type on keyboards with dead key on tilde, etc. Lua also already allows semicolons instead of commas in table constructor (I never seen this used, everyone uses commas) so having alternative 100x more common inequality operator spelling would be nice. Python used two inequality operators in the past too (it had<>from Pascal in addition to!=) but since version 3 kept only!=other than if you import a__future__Easter egg that bans!=and requires<>As for LuaJIT - the 5.2 environments and 5.3 numbers are probably such big changes it'd be hard to adapt, and break a lot of code out there that uses 5.1 version of the language. I first touched 5.2 (latest that just came out when I first picked up Lua) but went to 5.1 then, so if I want I have LuaJIT option. I like that the language is frozen and will never break any code for me (just like C won't and C++ will very rarely do). Lua 5.1 is good enough, I prefer how environments work in 5.1, I don't care for
gotoor__gcon tables, I'm familiar with the codebase and made some tiny improvements, etc.That minor versions are potential breaks (sometimes very gratuitous ones, like renames of functions) is a big downside to Lua ecosystem. In Python for years at work I targeted Ubuntu 20.04 which had Python 3.8 and never had problems running the same code on newer versions, but with Lua it'd require a bit (not much but not zero) effort.