4 ms·
You can use runtime ownership structures like ref cells, arcs, etc as well.
by PartiallyTyped 1y ago
You can use runtime ownership structures like ref cells, arcs, etc as well.
- pavlov 1y agoSure. The part that people often complain about is that they have to make these decisions, rather than having a runtime default picked for them by the language.
- PartiallyTyped 1y agoIsn’t that having your cake and eating it too? Like if you find the performance penalty acceptable, use an RC, and you have imho a better swift.
- pavlov 1y agoI agree! As an Objective-C veteran, I feel a lot of people overthink these decisions. You can write highly performant applications with prevalent reference counting, and Rust lets you optimize where it actually counts.