News for hackers. Stuff that matters.
Re:What's New in Lua 5.4 by G4BB3R on Wednesday July 15, 2020 @10:04PM (#23854952)
I am impressed modern languages haven't adopted 1-indexed array. This was a design mistake from BCPL and C.
Re:What's New in Lua 5.4 by sitkack on Wednesday July 15, 2020 @11:38PM (#23855494)
Lua was initially designed as a data description language for Oil and Gas simulations written in Fortran. 1 based indexing makes perfect sense in that context.
Re:What's New in Lua 5.4 by idle_zealot on Thursday July 16, 2020 @01:37AM (#23856119)
Having 0-indexed arrays[1] makes sense. It's lists[1] that should be 1-indexed.

[0]: where "array" means contiguous memory.

[1]: where "list" refers to a high-level collection of elements