3 ms·
What do you object to in counting from 1? (Other than it's not traditional.) In C, it's an offset into a typed block of memory, so 0 indexing makes sense. But
by JulianMorrison 16y ago
What do you object to in counting from 1? (Other than it's not traditional.)
In C, it's an offset into a typed block of memory, so 0 indexing makes sense. But lua does not deal directly with memory.
- __david__ 16y agoIt has nothing to do with indexing memory--it has to do with 1 based arrays causing "+1" and "-1" to be sprinkled all oever the place. I find Dykstra's argument to be compelling: http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EW...
- kemayo 16y agoMy experience with Lua hasn't seen this problem materialize.