3 ms·
"Hey man, don't harsh my buzz. I want give out two mutable aliases to this underlying value. I know what I'm doing." Narrator: He didn't know what he was do
by mustache_kimono 4y ago
"Hey man, don't harsh my buzz. I want give out two mutable aliases to this underlying value. I know what I'm doing."
Narrator: He didn't know what he was doing.
- nyanpasu64 4y agoGiving out two mutable aliases to an integer or struct holding integers is perfectly safe in C and C++ and JS and Java and Python... and perfectly safe in Rust if you hand out multiple &struct and mark each field as Cell<T> (just with painful syntax compared to any other imperative language in existence).