@TadoTheRustacean to Programmer Humor • 3 months agoWhat are variables and semicolons for actually?message-square36arrow-up1112arrow-down18file-text
arrow-up1104arrow-down1message-squareWhat are variables and semicolons for actually?@TadoTheRustacean to Programmer Humor • 3 months agomessage-square36file-text
minus-square@[email protected]linkfedilinkEnglish4•3 months agofor (const item in items) { } != for (const item of items) { }
for (const item in items) { }
!=
for (const item of items) { }
Still better than
for _, item in ipairs(items)