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/no_brains101 Jan 02 '26 edited Jan 02 '26
Do we REALLY need more "needs a space" tho?
IDK.
I would like an array type, but all the syntaxes you could use for it feel so meh and theres a lot of code out there already...
Also it wouldn't make it into luajit...
I love and hate luajit. Why must it be frozen... But also the fact that it is frozen also makes it more stable for things to be built on it... and its so fast... grrrrr.....
Personally, if I could redo lua, I would give it arrays, I would remove
[[these strings]]but keep[=[these ones]=]and I would make arrays use[].But I can't so, meh. I mean, I could, but noone would use it and I probably wouldn't manage to make it quite as fast as luaJIT lol (I could definitely make it as fast as 5.4 tho)
Slightly annoyed fennel didnt take the opportunity to fix list/array iteration.... They have an actual dynamic array type (kinda, or at least a reader macro sorta thing for them) they just needed to go a liiiiiiittle farther with it and make it compile to a proxy table with a new __ipairs and __pairs and stuff XD