3 ms·
Yes, unless you break out of it by using unsafe storage methods, which are purposefully made unergonomic to use. Due to its type system Rust has the advantage t
by bjz_ 10y ago
Yes, unless you break out of it by using unsafe storage methods, which are purposefully made unergonomic to use. Due to its type system Rust has the advantage that you can safely choose by either thread-local or atomic reference counting - Swift has to default to the latter. And you actually don't really need RC all that much - most data in a program is short-lived and has a single owner. The flip-side is that because Swift's reference counting is implicit, it makes the type signatures simpler, and working with them more ergonomic.