3 ms·
Sure. But UnsafeCell is a part of the language. So if we're comparing the language to the language, then they're equivalent. It's only if you say "no unsafe Rus
by steveklabnik 7y ago
Sure. But UnsafeCell is a part of the language. So if we're comparing the language to the language, then they're equivalent. It's only if you say "no unsafe Rust and no unsafe rust in anything you use" that this wouldn't be true, and that also means any program is effectively impossible (to print something to the screen, you need to talk to the OS, and that's unsafe!)
> Similarly, is splitting borrows still an issue?
It depends on exactly what you mean, there's a few different patterns that people mean when they mean "splitting borrows" and one of them has a camp of people who don't think that's a problem, but a feature.