@bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish • 2 days agoThe meaning of thislemmy.mlimagemessage-square62arrow-up1513
arrow-up1513imageThe meaning of thislemmy.ml@bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish • 2 days agomessage-square62
minus-squarelime!linkfedilinkEnglish60•2 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-square@Phen@lemmy.eco.brlinkfedilink10•2 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.