Comment by dmpk2k

1 year ago

I used to think the same as you about 1-based indexing in Lua... until I tried using Lua in a game engine. I was constantly getting hit in the face with problems (e.g. coordinate systems and off-by-one errors), even after spending far too much time trying to abstract around this mismatch to make these problems go away.

In theory I was okay with the indexing. In practice it was an absolute PITA.

Plus there were other numerous papercuts; it felt like Lua was actively fighting me every step of the way. I went from liking Lua to absolutely despising it.

In the end I switched to C++11, which amazingly was much more productive. As in night-and-day difference.