Gollum@feddit.org to Programmer Humor@programming.dev · 2 years agoAnother smart movefeddit.orgimagemessage-square6linkfedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageAnother smart movefeddit.orgGollum@feddit.org to Programmer Humor@programming.dev · 2 years agomessage-square6linkfedilink
minus-squarenickwitha_k (he/him)@lemmy.sdf.orglinkfedilinkarrow-up0·2 years agoGTFOH with that. 1-indexed arrays?! You monster. (Mostly joking… Ok, somewhat joking :P )
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up1·2 years agoLua had been banned from the chat
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up1·2 years 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·2 years 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.