Hacker News new | past | comments | ask | show | jobs | submit login

Doesn’t lua use 1 indexed arrays? Breaks my brain.





By default, yes. But you can define them to start in a 0 (doing it index by index, not sure if you can make that default). Or you if you feel like messing with someone, you can start them in any other number. Like -5, for example. :D

https://www.lua.org/pil/11.1.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: