3 ms·
> These alternatives take the approach that tracking ownership is not the default, which is fine for the majority of programs and far more ergonomic. If you wa
by timeon 2y ago
> These alternatives take the approach that tracking ownership is not the default, which is fine for the majority of programs and far more ergonomic.
If you want non-default safety you do not need to leave C++. That is why unlike all these new languages, Rust makes difference.
- zozbot234 2y agoSwift 6 is expected to be memory safe, including for concurrent programs. That's a lot more than you can say about C/C++. (This is achieved by tracking ownership at runtime when required. Rust allows for this via library types such as Rc<> and RefCell<>, which is more principled but obviously adds some boilerplate compared to Swift.)