News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by timeon on Friday September 06, 2024 @06:32AM (#41464780)
> 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.

Re:Swift is a more convenient Rust by zozbot234 on Friday September 06, 2024 @07:09AM (#41465011)
Swift 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.)