coja@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agoFind yourselflemmy.mlimagemessage-square98fedilinkarrow-up1619arrow-down128
arrow-up1591arrow-down1imageFind yourselflemmy.mlcoja@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agomessage-square98fedilink
minus-squareCihta@lemmy.worldlinkfedilinkarrow-up3·1 year agoWow that’s a very exhausting language. I dropped your code into an online rust to asm converter and it actually wasn’t more! I did try to post it for fun but lemmy kept messing up the code block. Oh well, wasn’t that amusing anyway!
minus-squareforce@lemmy.worldlinkfedilinkarrow-up1·1 year agolol that’s not actually how rust is written, it was just a joke it’d really be written if x > y { x } else { y }
Wow that’s a very exhausting language. I dropped your code into an online rust to asm converter and it actually wasn’t more! I did try to post it for fun but lemmy kept messing up the code block. Oh well, wasn’t that amusing anyway!
lol that’s not actually how rust is written, it was just a joke
it’d really be written
if x > y { x } else { y }