coja@lemmy.ml to Programmer Humor@lemmy.ml · 2 years agoFind yourselflemmy.mlimagemessage-square128linkfedilinkarrow-up1612
arrow-up1612imageFind yourselflemmy.mlcoja@lemmy.ml to Programmer Humor@lemmy.ml · 2 years agomessage-square128linkfedilink
minus-squareCihta@lemmy.worldlinkfedilinkarrow-up3·2 years 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·2 years 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 }