Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cyberpunk
19 hours ago
|
parent
|
context
|
favorite
| on:
Lua is so underrated
Doesn’t lua use 1 indexed arrays? Breaks my brain.
tecleandor
19 hours ago
[–]
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
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: