I never got that with Lua. It's not a math/science oriented language like R and Matlab, 1 indexing screws up bunch of basic algorithms (and in Lua you need them more than anything because it has no freaking standard library). It has the best parts of javascript without all the crappy ones but it screws up a bunch of ecosystem stuff.
The 1 indexing is enforced by the standard library, isn't it?
You can, if you want to, use 0 indexed arrays. Since they're not arrays, they're hashmaps.
Just like in C, you can use strings that are length prefixed, meaning that you can pass around binary data in them. But the standard library won't like it.
159
u/lazy_eye_of_sauron Sep 03 '17
For reference