bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 4 days agoThe meaning of thisimagemessage-square71fedilinkarrow-up1535arrow-down116
arrow-up1519arrow-down1imageThe meaning of thisbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 4 days agomessage-square71fedilink
minus-squarelime!@feddit.nulinkfedilinkEnglisharrow-up65arrow-down1·4 days 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·4 days 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.