@TadoTheRustacean@programming.dev to Programmer Humor@programming.dev • 1 year agoWhat are variables and semicolons for actually?message-square36fedilinkarrow-up1112arrow-down18file-text
arrow-up1104arrow-down1message-squareWhat are variables and semicolons for actually?@TadoTheRustacean@programming.dev to Programmer Humor@programming.dev • 1 year agomessage-square36fedilinkfile-text
minus-square@marcos@lemmy.worldlinkfedilink7•1 year agoDo not expect to find anything like Javascript craziness on other languages. Or you’ll be severely disappointed.
minus-square@FizzyOrange@programming.devlinkfedilink4•1 year agoThere are plenty of languages with warts at least as bad as JavaScript’s. Bash, PHP, C, even relatively sane languages like Python still have huge issues like implicit variable declaration.
minus-square@SpaceNoodle@lemmy.worldlinkfedilink6•1 year agoJS and PHP are by themselves in a special ring of hell.
minus-square@TadoTheRustacean@programming.devOPlinkfedilink1•1 year agoBash is a bigger one. Luckily there’s nushell
minus-square@jubilationtcornpone@sh.itjust.workslinkfedilinkEnglish4•1 year agofor (const item in items) { } != for (const item of items) { }
Do not expect to find anything like Javascript craziness on other languages. Or you’ll be severely disappointed.
There are plenty of languages with warts at least as bad as JavaScript’s. Bash, PHP, C, even relatively sane languages like Python still have huge issues like implicit variable declaration.
JS and PHP are by themselves in a special ring of hell.
Bash is a bigger one. Luckily there’s nushell
for (const item in items) { }
!=
for (const item of items) { }
Still better than
for _, item in ipairs(items)