| ▲ | mojuba 2 hours ago | |
> I would absolutely not call Rust a simpler Swift. Swift doesn't have and ownership/borrowing system Swift already does have those things but unlike Rust, they are opt-in. Not going to argue which language is simpler, but sorry, you don't seem like someone who knows Swift very well. | ||
| ▲ | needlesslygrim 2 hours ago | parent [-] | |
While Swift now has the `borrowing` and `consuming` keywords, support for storing references is nonexistent, and the only way to return/store `Span`s, etc, is only possible through using experimental `@lifetime` annotations. Swift is a nice language, and it's new support for the bare necessity of affine types is a good step forward, but it's not at all comparable with Rust. | ||