News for hackers. Stuff that matters.
Re:Lua, a Misunderstood Language (2021) by thunky on Thursday September 29, 2022 @07:21PM (#33028705)
You're both right.

You want to measure the distance from a starting point (zero), the person you're replying to wants to count/label things from a starting point (one).

The distance method doesn't work as well for picking items from a bag, and the counting method doesn't work as well for calculating offsets.

They can both work for arrays, so neither is wrong.

There are no comments on this comment yet.