r/ProgrammerHumor • • Oct 10 '26

Meme theyAreLovingIt

Post image
2.1k Upvotes

83 comments sorted by

View all comments

Show parent comment

1

u/Hohenheim_of_Shadow Oct 11 '26

Pass by Copy is the alternative and is the sensible default for simple stack based structs.

For purely stack based data types, Pass by Move is Pass by Copy with the gotcha of invalidating the original variable. Of immutability is the goal, Pass by Move is far worse than Copy for simple stack structs.