| ▲ | vardump 2 hours ago |
| Does it borrow borrow checker? |
|
| ▲ | tialaramex 34 minutes ago | parent | next [-] |
| I believe Swift tends to use reference counting and copy-on-write strategies. This, like GC, is less for the programmer to think about and doesn't require the semantic checks, but sometimes the performance cost is unacceptable compared to what you'd write in Rust. |
| |
| ▲ | airspeedswift 16 minutes ago | parent | next [-] | | You can choose to use either refcounting or unique ownership for your types. For most use cases, refcounted (+ copy-on-write) is the best choice and is the default, but the truetype interpreter made extensive use of non-refcounted types to achieve this performance. | |
| ▲ | MBCook 16 minutes ago | parent | prev [-] | | They have either recently added or talked about a borrow style system in the language as a way to avoid more copies and speed things up/lower memory usage/help with asynchronous programming. |
|
|
| ▲ | 2 hours ago | parent | prev | next [-] |
| [deleted] |
|
| ▲ | anextio an hour ago | parent | prev [-] |
| Yes, it has a borrow checker. |