bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 9 hours agoThe meaning of thislemmy.mlimagemessage-square49fedilinkarrow-up1365arrow-down110
arrow-up1355arrow-down1imageThe meaning of thislemmy.mlbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 9 hours agomessage-square49fedilink
minus-squarelime!@feddit.nulinkfedilinkEnglisharrow-up40arrow-down1·8 hours 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-up3·5 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.