4 ms·
The general idea is to be able to reuse code as much as possible, and C/C++/Java/Javascript style syntax make a lot of code available and if we ditch the 1 base
by mingodad 8y ago
The general idea is to be able to reuse code as much as possible, and C/C++/Java/Javascript style syntax make a lot of code available and if we ditch the 1 based index in favor of 0 based it makes it even easier.
- mkl 8y agoIt looks like it's still 1-based currently, is that right? 1-based arrays have been the biggest obstacle to me using Lua.
- spc476 8y agoI did years of assembly, then C, and now Lua. I've yet to find the 1-based indexing to be an issue, and that's even having written a few C modules to manipulate Lua arrays. What is it about the 1-based arrays that is so off-putting?
- mingodad 8y agoAgain the point is easy code reuse.
- mingodad 8y agoYes you are right it's still 1 based to allow easy conversion from actual existing Lua projects.