3 ms·
Wow, is Lua now the canonical example of a language that uses 1-origin indexing? No one remembers Fortran anymore? God I feel old...
by ScottBurson 11y ago
Wow, is Lua now the canonical example of a language that uses 1-origin indexing? No one remembers Fortran anymore? God I feel old...
- TazeTSchnitzel 11y agoOne of the few that people still care about! Aside from BASIC, maybe.
- scotty79 11y agoActually I just went here: http://en.wikipedia.org/wiki/Comparison_of_programming_languages_%28array%29 http://en.wikipedia.org/wiki/Comparison_of_programming_langu... sorted table by "Default base index" and at first picked FORTRAN, considered COBOL and Smalltalk for a while then saw Lua and thought that should resonate with people. My personal experience with 1 based indexing is from Matlab and Pascal (though you can base your indexes on whatever value you want there).
- zzalpha 11y agoOr Algol. Or Pascal. Or Smalltalk...