3 ms·
> decades of programming languages choosing 0-based index is hard to ignore Yes - many file formats also work with zero-based indices, not to mention the hardw
by pansa2 2y ago
> decades of programming languages choosing 0-based index is hard to ignore
Yes - many file formats also work with zero-based indices, not to mention the hardware itself.
One-based indexing is particularly problematic in Lua, because the language is designed to interoperate closely with C - so you're frequently switching between indexing schemes.