Re:Fengari – Lua for the Browser
by CollinEMac on Sunday February 20, 2022 @09:48AM
(#30406105)
Same here. It's not a big deal once you get used to it but after years of always having indexes start at 0 it just seems... off.
[ Parent
| on HN ]
Re:Fengari – Lua for the Browser
by throwawayboise on Sunday February 20, 2022 @01:13PM
(#30407807)
If you learned arrays in C where indexing is the same as pointer arithemetic then zero-based arrays seem natural. If you are coming from the real-world concept of "a list of things" then the "zero-th item" in the list seems odd; one-based indexing feels natural.