@[email protected] to Programmer [email protected]English • 2 months agoThe meaning of thislemmy.worldimagemessage-square71fedilinkarrow-up1481cross-posted to: [email protected]
arrow-up1481imageThe meaning of thislemmy.world@[email protected] to Programmer [email protected]English • 2 months agomessage-square71fedilinkcross-posted to: [email protected]
minus-squarelime!linkfedilinkEnglish61•2 months 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@[email protected]linkfedilink11•2 months 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.