@bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish • 5 days agoThe meaning of thislemmy.mlimagemessage-square56fedilinkarrow-up1520arrow-down10
arrow-up1520arrow-down1imageThe meaning of thislemmy.ml@bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish • 5 days agomessage-square56fedilink
minus-square@NichtElias@sh.itjust.workslinkfedilink11•5 days agomatch isn’t just equivalent to switch though, so in this case it actually makes sense to call it something different.
minus-square@Archr@lemmy.worldlinkfedilink1•2 days 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: