3 ms·
Rust and Swift share a lot of core concepts. Swift has a few extra bits for Objective-C compatibility (when running on Apple platforms), but otherwise the bigg
by dwaite 1y ago
Rust and Swift share a lot of core concepts.
Swift has a few extra bits for Objective-C compatibility (when running on Apple platforms), but otherwise the biggest differences come to design and ergonomics of the language itself.
If I need complete control over memory for say a web server, or am writing code to run on an embedded device (e.g. without Linux), I'll use Rust - even if Swift technically has the features to meet my needs.
Thats the reverse if I am creating mobile or desktop apps. I'd probably prefer using neither for web services like in this article, but would still probably pick Swift given a limited choice.