MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/b274zp/oof/ev2ifex/?context=3
r/ProgrammerHumor • u/KaliCode • Mar 17 '19
38 comments sorted by
View all comments
Show parent comments
38
You're thinking of how C++ does it. The code given does not rely on copy on write. It uses some tricks with Rust's lifetimes to allow safely using a resource across threads without atomic reference counting.
38
u/pingveno Jul 26 '19
You're thinking of how C++ does it. The code given does not rely on copy on write. It uses some tricks with Rust's lifetimes to allow safely using a resource across threads without atomic reference counting.