5 ms·
I don't really see how 1-based indexing makes anything better. It just requires sprinkling magic +1 and -1 in various places. Really only reason to use 1-based
by garaetjjte 6y ago
I don't really see how 1-based indexing makes anything better. It just requires sprinkling magic +1 and -1 in various places.
Really only reason to use 1-based indexing I see is to make array index arithmetic needlessly annoying, to discourage users from doing any complex operations there..
- pasquinelli 6y agoAren't those +1's and -1's just the mirror images of the -1's and +1's you have to do in a 0 based system? This whole conversation is really silly. 1 based indexing is such trivial detail of lua that I'm not surprised so many words have been spent discussing it.