flamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 21 hours agoYou can pry pattern matching from my cold dead handssopuli.xyzimagemessage-square157fedilinkarrow-up1397arrow-down114
arrow-up1383arrow-down1imageYou can pry pattern matching from my cold dead handssopuli.xyzflamingo_pinyata@sopuli.xyz to Programmer Humor@programming.dev · 21 hours agomessage-square157fedilink
minus-squaretyler@programming.devlinkfedilinkarrow-up14arrow-down3·19 hours 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·12 hours agoSkill issue. Once you learn them they are quite fun.
minus-squareunit327@lemmy.ziplinkfedilinkarrow-up5·10 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”.