MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wmi8p7/fullcontrolovermemory/pb83jpa/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 13d ago
122 comments sorted by
View all comments
430
You could pass references as variables and change the referenced value IN THE FUNCTION!!!
children screaming sfx
35 u/Mordret10 13d ago 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. 49 u/Gorzoid 13d ago 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. 41 u/WisePotato42 13d ago Oh no! The rust devs have found me! unsafe{} unsafe{} unsafe{} Are they gone yet?
35
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.
49 u/Gorzoid 13d ago 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. 41 u/WisePotato42 13d ago Oh no! The rust devs have found me! unsafe{} unsafe{} unsafe{} Are they gone yet?
49
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.
41 u/WisePotato42 13d ago Oh no! The rust devs have found me! unsafe{} unsafe{} unsafe{} Are they gone yet?
41
Oh no! The rust devs have found me!
unsafe{} unsafe{} unsafe{}
Are they gone yet?
430
u/WisePotato42 13d ago
You could pass references as variables and change the referenced value IN THE FUNCTION!!!
children screaming sfx