roon ( @roon@lemmy.ml ) to Programmer Humor@programming.devEnglish · 2 years ago"I want to live forever in AI"lemmy.mlimagemessage-square64linkfedilinkarrow-up1429file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1429image"I want to live forever in AI"lemmy.ml roon ( @roon@lemmy.ml ) to Programmer Humor@programming.devEnglish · 2 years agomessage-square64linkfedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-square I_am_10_squirrels ( @I_am_10_squirrels@beehaw.org ) linkfedilinkarrow-up5·2 years agoThe first line passes the argument by reference, ie, the object itself. The second line passes the object by value, ie, a copy.
minus-square lad ( @sukhmel@programming.dev ) linkfedilinkarrow-up4·2 years 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