roon@lemmy.ml to Programmer Humor@programming.devEnglish · 7 months ago"I want to live forever in AI"lemmy.mlimagemessage-square257fedilinkarrow-up1752arrow-down135file-textcross-posted to: [email protected]
arrow-up1717arrow-down1image"I want to live forever in AI"lemmy.mlroon@lemmy.ml to Programmer Humor@programming.devEnglish · 7 months agomessage-square257fedilinkfile-textcross-posted to: [email protected]
minus-squareI_am_10_squirrels@beehaw.orglinkfedilinkarrow-up4·7 months agoThe first line passes the argument by reference, ie, the object itself. The second line passes the object by value, ie, a copy.
minus-squarelad@programming.devlinkfedilinkarrow-up4·7 months agoAlso in Rust that would be the opposite which is funny but confusing
The first line passes the argument by reference, ie, the object itself.
The second line passes the object by value, ie, a copy.
Also in Rust that would be the opposite which is funny but confusing
Thank