TadoTheRustacean@programming.dev to Programmer Humor@programming.dev · 8 months agoWhat are variables and semicolons for actually?message-squaremessage-square36fedilinkarrow-up1113file-text
arrow-up1113message-squareWhat are variables and semicolons for actually?TadoTheRustacean@programming.dev to Programmer Humor@programming.dev · 8 months agomessage-square36fedilinkfile-text
minus-squarejubilationtcornpone@sh.itjust.workslinkfedilinkEnglisharrow-up4·8 months agofor (const item in items) { } != for (const item of items) { }
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up2·8 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)