Will Swift ever be able to span all the way down to enable Rust-like performance in places where it’s necessary?
Or is it much more that it takes for a language to be a viable choice for starting new C++ type of projects with?
Or is it much more that it takes for a language to be a viable choice for starting new C++ type of projects with?
1. Stack and static-allocated arrays.
2. True pass-by-reference for value types.
3. A sufficiently-smarter compiler that's more often able to elide dynamic allocations, reference counting, bounds checks, vtables etc. (Lifetime semantics will help with this).