bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 day agoThe meaning of thislemmy.mlimagemessage-square60linkfedilinkarrow-up1498arrow-down112
arrow-up1486arrow-down1imageThe meaning of thislemmy.mlbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 day agomessage-square60linkfedilink
minus-squarelime!@feddit.nulinkfedilinkEnglisharrow-up58arrow-down1·1 day 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-up10·23 hours 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.