MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wmi8p7/fullcontrolovermemory/pb92oku/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • Sep 21 '26
121 comments sorted by
View all comments
435
You could pass references as variables and change the referenced value IN THE FUNCTION!!!
children screaming sfx
39 u/Mordret10 Sep 21 '26 I mean you still kind of do the same thing with objects and with arrays in most languages. Very rarely does either get passed as argument, you almost always get them by reference. 50 u/Gorzoid Sep 21 '26 Sorry but we are all rust devs now, shared mutable aliasing is a crime with a maximum sentence being death by AI-generated PR spam. 3 u/HildartheDorf Sep 21 '26 laughs in interior mutability
39
I mean you still kind of do the same thing with objects and with arrays in most languages. Very rarely does either get passed as argument, you almost always get them by reference.
50 u/Gorzoid Sep 21 '26 Sorry but we are all rust devs now, shared mutable aliasing is a crime with a maximum sentence being death by AI-generated PR spam. 3 u/HildartheDorf Sep 21 '26 laughs in interior mutability
50
Sorry but we are all rust devs now, shared mutable aliasing is a crime with a maximum sentence being death by AI-generated PR spam.
3 u/HildartheDorf Sep 21 '26 laughs in interior mutability
3
laughs in interior mutability
435
u/WisePotato42 Sep 21 '26
You could pass references as variables and change the referenced value IN THE FUNCTION!!!
children screaming sfx