4 ms·
> I think would be safe (only) if the application is single-threaded. Unfortunately, it's not that easy: http://manishearth.github.io/blog/2015/05/17/the-probl
by steveklabnik 11y ago
> I think would be safe (only) if the application is single-threaded.
Unfortunately, it's not that easy: http://manishearth.github.io/blog/2015/05/17/the-problem-with-shared-mutability/ http://manishearth.github.io/blog/2015/05/17/the-problem-wit...
- groovy2shoes 11y agoGood to know. Thanks.
- Manishearth 11y agoIn fact, RefCell can't even be shared between threads, it _has_ to be used in a single threaded context. RefCell and the "no mutable aliasing" isn't something to be "worked around", it's something to embrace, because safety and many other things come from it.