3 ms·
>If you don't care about performance and "zero cost abstractions" and are more interested in Rust for its memory safety... Just about GC language has similar t
by yyyk 4y ago
>If you don't care about performance and "zero cost abstractions" and are more interested in Rust for its memory safety...
Just about GC language has similar tradeoffs. The question here would be why Swift over Go/C#/Java/Python/Typescript?
- rattray 4y agoWell that's easy. Swift is: 1. Much more expressive and featureful than Go 2. More concise and modern than C# (debatable maybe?) 3. Less JVM than Kotlin (the apples-to-apples; Java is a much worse language) 4. Way, way faster and more typesafe than Python 5. Better support for parallel execution (and probably fine-tuning other performance knobs) than TypeScript
- yyyk 4y ago1. Definitely, but Go is well very optimized for concurrent network apps. 2. I think the C# team has done very well modernizing. The runtime is a bit of a bother though. 3. There's Kotlin/Native and Kotlin/JS. 4. Python has dev speed and ML benefits. 5. If you're going this way, performance probably isn't your main goal? All-in-all, Swift is interesting, but (IMHO) lackluster crossplatform support and toolchain is a problem.
- dcow 4y agoI have used all those languages seriously save C# (only lightly) and can safely say Swift knocks them all out of the park in terms of actually writing applications. Indeed, its cross platform support is lackluster, thats why we’re here.