@[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-square@[email protected]linkfedilink11•2 months agomatch isn’t just equivalent to switch though, so in this case it actually makes sense to call it something different.
minus-square@[email protected]linkfedilink1•2 months agoThis is very true. Match statements are much more powerful that switch statements in any other language. For instance: matching objects very specifically if conditions within case statements pulling variables from inside of the object directly.
match
isn’t just equivalent toswitch
though, so in this case it actually makes sense to call it something different.This is very true. Match statements are much more powerful that switch statements in any other language.
For instance: