lua-users home
lua-l archive

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


I've never understood why Lua attracts so much opprobrium for 1 based indexing. I started my career working on mainframes and all the languages had 1 based indexing (COBOL, PL1, Fortran, REXX). It wasn't until I started using C that I had ever used a language with 0 based indexing which makes sense for a language where arrays decay to pointers. IMO, the Lua authors got it right.


On 28/03/2018 4:41 PM, Peter Pimley wrote:
Lua gets a mention :)

https://medium.com/@caspervonb/a-brief-totally-accurate-history-of-programming-languages-cd93ec806124