eraclito@feddit.it to Rust@programming.devEnglish · 1 year agoShould I Rust or should I Go?kerkour.comexternal-linkmessage-square21fedilinkarrow-up146arrow-down114file-textcross-posted to: hackernews@lemmy.smeargle.fanshackernews@derp.foo
arrow-up132arrow-down1external-linkShould I Rust or should I Go?kerkour.comeraclito@feddit.it to Rust@programming.devEnglish · 1 year agomessage-square21fedilinkfile-textcross-posted to: hackernews@lemmy.smeargle.fanshackernews@derp.foo
minus-squareUlrikHD@programming.devlinkfedilinkarrow-up1·edit-21 year agomatch isn’t a protected keyword like if is. match = 0 match match: case 0: print(0) case _: print(1) Is legal and will give print out 0.
minus-squareTurun@feddit.delinkfedilinkarrow-up1·1 year agoWell, today I learned. Thanks for pointing it out.
match
isn’t a protected keyword likeif
is.match = 0 match match: case 0: print(0) case _: print(1)
Is legal and will give print out 0.
Well, today I learned. Thanks for pointing it out.