logoalt Hacker News

behnamohtoday at 12:38 AM1 replyview on HN

Swift also supports the ownership model.


Replies

kibwentoday at 2:50 AM

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.