bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 month agoThe meaning of thislemmy.mlimagemessage-square72linkfedilinkarrow-up1544arrow-down114
arrow-up1530arrow-down1imageThe meaning of thislemmy.mlbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 month agomessage-square72linkfedilink
minus-squarelime!@feddit.nulinkfedilinkEnglisharrow-up67arrow-down1·1 month agopass and continue are absolutely not equal (pass is a noop, and python has a continue keyword that does what you think), and switch is called match like in many other languages. except is weird though.
minus-squarePhen@lemmy.eco.brlinkfedilinkarrow-up11·1 month ago“except” is also used in Pascal (or at least the main derivatives of it), but not sure if that’s older than its use in Python or not.
pass and continue are absolutely not equal (pass is a noop, and python has a continue keyword that does what you think), and switch is called match like in many other languages. except is weird though.
“except” is also used in Pascal (or at least the main derivatives of it), but not sure if that’s older than its use in Python or not.