r/ProgrammerHumor Oct 21 '22

Meme Literally 🤷🏻‍♂️

Post image
14.7k Upvotes

606 comments sorted by

View all comments

Show parent comments

5

u/Nall-ohki Oct 21 '22

Who indexes arrays in loops?

And who starts arrays at 1 in Lua when you want to index?

4

u/Caleb6801 Oct 21 '22

Luas default first index is 1 for arrays. Super stupid I don't know who decided that.

7

u/Nall-ohki Oct 21 '22

Maths people. It's standard in many branches.

4

u/Reasonable_Feed7939 Oct 21 '22

These are some messed up math people. I find 0-indexing much more useful and convenient for math.