flamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 2 days agoYou can pry pattern matching from my cold dead handssopuli.xyzimagemessage-square218fedilinkarrow-up1506arrow-down118
arrow-up1488arrow-down1imageYou can pry pattern matching from my cold dead handssopuli.xyzflamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 2 days agomessage-square218fedilink
minus-squaretyler@programming.devlinkfedilinkarrow-up14arrow-down3·2 days 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-down2·1 day agoSkill issue. Once you learn them they are quite fun.
minus-squareunit327@lemmy.ziplinkfedilinkarrow-up9·1 day 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”.