bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 4 days agoThe meaning of thislemmy.mlimagemessage-square70linkfedilinkarrow-up1536arrow-down114
arrow-up1522arrow-down1imageThe meaning of thislemmy.mlbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 4 days agomessage-square70linkfedilink
minus-squareNichtElias@sh.itjust.workslinkfedilinkarrow-up11·4 days agomatch isn’t just equivalent to switch though, so in this case it actually makes sense to call it something different.
minus-squareArchr@lemmy.worldcakelinkfedilinkarrow-up1·23 hours 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: