3 ms·
I think it's more interesting than anything else. As far as I know Swift won't pull in a heavy runtime or anything like that
by superb_dev 3y ago
I think it's more interesting than anything else. As far as I know Swift won't pull in a heavy runtime or anything like that
- bobbylarrybobby 3y agoI think Swift does pull in a runtime, but the runtime is included in iOS itself so apps and users don't really pay a cost. It can just link to whatever’s on disk. Prior to some Swift version — Swift 4? don't remember — iOS apps that used Swift did have to bring their own runtime, and iirc this was because Swift was evolving so fast that Apple wasn't willing or able to commit to including a bunch with iOS.
- dwaite 3y ago> ... iirc this was because Swift was evolving so fast that Apple wasn't willing or able to commit to including a bunch with iOS. Not just that - they wanted to have language features for stability and migration which they hadn't fully flushed out yet and implemented. Now, Swift is part of the OS itself - which has good and bad sides, because policies to support older versions of iOS also mean you can't fully leverage all the new language features.