Re:Swift is a more convenient Rust
by behnamoh on Saturday January 31, 2026 @07:38PM
(#46842456)
Swift also supports the ownership model.
[ Parent
| on HN ]
Defaults matter. Owned types are the default in Rust and opt-in in Swift. As a consequence, by default it's safe to assume that any Swift code you fine in the wild isn't making use of owned types.
Re:Swift is a more convenient Rust
by jdalsgaard on Sunday February 01, 2026 @04:57AM
(#46844951)
Yes, it supports it. But is fundamentally not based on the idea of zero-cost abstraction from where I see a lot of Rust features being derived from. So crates I pull in must obey it too - it's not optional (you do have unsafe to watch out for, but that's an easy grep).