News for hackers. Stuff that matters.
Re:Lua, a Misunderstood Language by garaetjjte on Friday January 15, 2021 @06:13PM (#25797860)
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..

Re:Lua, a Misunderstood Language by pasquinelli on Friday January 15, 2021 @08:04PM (#25798818)
Aren'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.