TadoTheRustacean@programming.dev to Programmer Humor@programming.dev · 9 months agoWhat are variables and semicolons for actually?message-squaremessage-square34fedilinkarrow-up1110arrow-down18file-text
arrow-up1102arrow-down1message-squareWhat are variables and semicolons for actually?TadoTheRustacean@programming.dev to Programmer Humor@programming.dev · 9 months agomessage-square34fedilinkfile-text
minus-squarejubilationtcornponelinkfedilinkEnglisharrow-up4·9 months agofor (const item in items) { } != for (const item of items) { }
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up2·9 months agoStill better than for _, item in ipairs(items)
for (const item in items) { }
!=
for (const item of items) { }
Still better than
for _, item in ipairs(items)