lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Hello Lua community and Lua team,


It’s true this would be breaking, but Lua has traditionally not been afraid of breaking backwards compatibility in some important things, even in 5.x versions. Since this is a bigger jump, I’m recommending it for Lua 6.


I’m well aware of the benefits of 1-indexing, but at this point in the human-wide history of software, roughly 30 years after Lua came out, practically every other language uses 0-indexing, and practically every programmer must become familiar with it at some point.


Even when using Lua interop with other libraries, Lua-only users will have to eventually learn 0-indexing with all probability.


Plus, there are unique advantages to 0-indexing, e.g. offset=0 for first item, which is useful in countless situations.


However this request will be received, it’s not my intention to start a flame war or debate. I’ve made my case, and I have no further points to make. Thanks for reading.


By the way, thanks for creating and maintaining a great language. It’s especially fun to use in Pico8 and Love2d.



Steven Degutis