Re:Learn Lua in 15 Minutes (2013)
by dnautics on Tuesday June 30, 2020 @09:54PM
(#23696886)
0-based array indexes make sense when what you are working with is laid out in memory from an offset. Honestly, if we cared about purity literally everything else (linked lists, etc) should be 1-indexed, but, stuff like composition and abstraction turned out to be more important, so we're stuck with 0-based indexes for everything.
[ Parent
| on HN ]
There are no comments on this comment yet.