3 ms·
Does Swift really compete with those languages? As I understand, it's pretty much just there so that people can write software for MacOS/iOS without needing to
by sneed_chucker 3y ago
Does Swift really compete with those languages?
As I understand, it's pretty much just there so that people can write software for MacOS/iOS without needing to use Objective C.
- armchairhacker 3y agoIt absolutely competes if the non-Apple ecosystem is improved. And Apple has put some support into running Swift in Linux, just not enough. A big thing Swift has over all these languages is that it's higher-level than Rust and Zig, but not garbage-collected unlike Scala, Kotlin, and Go. Personally, I would use it if it wasn't for its dependence on Apple and that I use IntelliJ and they are discontinuing AppCode.
- super_flanker 3y agoReference counting is a garbage collection strategy, otherwise python too would be non-gc language (cpython).
- machinekob 3y agoARC is very limited in swift (mostly classes) most of the other types are value types that doesn't use ARC, also most folks don't consider ARC to be GC as there is no garbage to be collected.