Re:Berry is a ultra-lightweight dynamically typed embedded s...
by zdragnar on Saturday October 07, 2023 @01:45PM
(#37803839)
Bingo. All of the languages I have used prior to (and since) use 0-indexed arrays.
There's times where doing math with array indexes is simpler with 0 and with 1-indexed arrays. I don't think I really found 0 to be difficult to learn; there are a great many more challenging things.
I wouldn't say "don't use a 1 indexed language" but I've also never found the arguments in favor of it to be compelling when using lua.
There's times where doing math with array indexes is simpler with 0 and with 1-indexed arrays. I don't think I really found 0 to be difficult to learn; there are a great many more challenging things.
I wouldn't say "don't use a 1 indexed language" but I've also never found the arguments in favor of it to be compelling when using lua.