flamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 1 day agoYou can pry pattern matching from my cold dead handssopuli.xyzimagemessage-square202fedilinkarrow-up1483arrow-down117
arrow-up1466arrow-down1imageYou can pry pattern matching from my cold dead handssopuli.xyzflamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 1 day agomessage-square202fedilink
minus-squaretyler@programming.devlinkfedilinkarrow-up14arrow-down3·1 day agoList comprehensions are much stranger than tabs vs spaces. There are very very very few languages that use them, and python’s is by far the worst out of the popular ones.
minus-squareSaharaMaleikuhm@feddit.orglinkfedilinkarrow-up6arrow-down1·1 day agoSkill issue. Once you learn them they are quite fun.
minus-squareunit327@lemmy.ziplinkfedilinkarrow-up7·22 hours agoThe concept of a list comprehenshion is sinple but syntax is awful, as if Yoda was writing a for loop. “x for x in y it is, hmm yes”.
List comprehensions are much stranger than tabs vs spaces. There are very very very few languages that use them, and python’s is by far the worst out of the popular ones.
Skill issue. Once you learn them they are quite fun.
The concept of a list comprehenshion is sinple but syntax is awful, as if Yoda was writing a for loop. “x for x in y it is, hmm yes”.