Gollum@feddit.org to Programmer Humor@programming.dev · 1 year agoAnother smart movefeddit.orgimagemessage-square5linkfedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageAnother smart movefeddit.orgGollum@feddit.org to Programmer Humor@programming.dev · 1 year agomessage-square5linkfedilink
minus-squarenickwitha_k (he/him)@lemmy.sdf.orglinkfedilinkarrow-up0·1 year agoGTFOH with that. 1-indexed arrays?! You monster. (Mostly joking… Ok, somewhat joking :P )
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up1·1 year agoIn Lua all arrays are just dictionaries with integer keys, a[0] will work just fine. It’s just that all built-in functions will expect arrays that start with index 1.
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up1·1 year agoYour argument isn’t making me any happier - it just fills me with more rage.
GTFOH with that. 1-indexed arrays?! You monster.
(Mostly joking… Ok, somewhat joking :P )
Lua has entered the chat
Lua had been banned from the chat
In Lua all arrays are just dictionaries with integer keys, a[0] will work just fine. It’s just that all built-in functions will expect arrays that start with index 1.
Your argument isn’t making me any happier - it just fills me with more rage.