You can still use 0 as a key for a table if you want: my_table = {[0] = "a", [1] = "b"}. But what really annoys me in Lua is the fact that 0 is true for some reason.
I thank all the Gods and Goddesses and all the other deities that could be that I use Lua pretty exclusively in game modding and my Figura avatar on Minecraft
37
u/CirnoIzumi 9d ago
actually its a table
12
u/El_RoviSoft 8d ago
At some point you’ll stop care about this
8
u/FromTheSeaOfThySoul 8d ago
You can still use 0 as a key for a table if you want: my_table = {[0] = "a", [1] = "b"}. But what really annoys me in Lua is the fact that 0 is true for some reason.
7
u/Arian-ki 8d ago
Oh no
Looks at Matlab
1
u/tkatoia 8d ago
I use this language once with a robot, man.. I was a chaos
1
u/eanat 6d ago
it's not that much bad like most of people would think actually.
1
u/Civil-Cookie-1659 2d ago
I think it's much better this way. No need to count + 1