Re:Lua, a Misunderstood Language (2021)
by nequo on Thursday September 29, 2022 @01:58PM
(#33024673)
0-based indexing is not universal in math either. We often index time from 0, but when we refer to components of a vector, we often index those from 1. For example, I'd write or see things like $\sum_{k=1}^N f(x_k)$ where $x$ is a vector. In these cases, 0-based indexing would look out of place.
[ Parent
| on HN ]