4 ms·
Why should I use Swift instead of Rust?
by 29athrowaway 2y ago
Why should I use Swift instead of Rust?
- manmal 2y agoThe concurrency story is quite good now with Swift 6, and it’s arguably easier to handle than the borrow checker, but still very safe.
- Sytten 2y agoThe way I view it as a Rust experienced programmer: Its kinda like if everything in your program was Arc<dyn Trait> and we didnt have the mess that are the async executors. But I might be wrong. Love rust but god that sometimes I curse the choices that were made and how slow it evolves.
- manmal 2y agoI don't have a lot of experience with Rust, but that sounds about right.
- msk-lywenn 2y agoAnd supposedly, the compiler transforms the Arc in Rc or even removes it entirely if it can prove to be fine. I still did not check if there is a tool that tells you what was optimized and the reason why something wasn't.
- singularity2001 2y agoSwift is elegant, beautiful and concise, whereas Rust is an ugly verbose sigil mess.
- 29athrowaway 2y agoWould it be fair to say that Rust is a better C++ and Swift is a better Objective-C?
- helge5 2y agoNo, both Rust and Swift can be seen as better C++'s. And both do not provide the Smalltalk like OO Objective-C has. Swift (only) on Apple platforms integrate w/ ObjC, but the core language is more like C++ and very little like Smalltalk.
- deleted 2y ago[deleted]
- rgreekguy 2y agoBecause it is not Rust.