@[email protected] to Programmer [email protected]English • 12 days agoThe meaning of thislemmy.worldimagemessage-square71fedilinkarrow-up1475cross-posted to: [email protected]
arrow-up1475imageThe meaning of thislemmy.world@[email protected] to Programmer [email protected]English • 12 days agomessage-square71fedilinkcross-posted to: [email protected]
minus-squarelime!linkfedilinkEnglish60•12 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@[email protected]linkfedilink11•12 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.