4 ms·
> standard library still not complete Define "complete." I would say if you count the Foundation library - which ships with Swift - as part of the standard lib
by Cyberdog 9y ago
> standard library still not complete
Define "complete." I would say if you count the Foundation library - which ships with Swift - as part of the standard library, things are pretty darn complete.
> new features may take time to land on other platforms
Not as far as Swift itself is concerned. Ever since Swift went OSS, new releases land for Linux and macOS at the same time.
- euyyn 9y agoIs there already NSURLSession (or Swift's equivalent) for Linux?
- veidr 9y agoYes, and there has been for a while now. However, (as you might already know, since you chose the NSURLSession example), it's not 100% feature-complete when compared to the macOS or iOS version. Here's one example of where you have to do (or at least, I had to do on 2017-07-12) #if !os(Linux) to account for platform differences: https://github.com/soracom/soracom-sdk-swift/blob/master/Sources/Request.swift#L291 https://github.com/soracom/soracom-sdk-swift/blob/master/Sou... You will encounter that kind of thing from time to time if you use Swift and Foundation on Linux. Still, the Foundation library is highly usable on Linux, and is vastly ahead of where I expected they would be by now when they announced it. But there are still some things that are not implemented. They actually do have a good status page about this topic specifically: https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/Status.md https://github.com/apple/swift-corelibs-foundation/blob/mast...
- beefsack 9y agoThere is a significant amount of functionality in Foundation unavailable on other platforms: https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/Status.md https://github.com/apple/swift-corelibs-foundation/blob/mast...
- Cyberdog 9y agoNumbers-wise, yes. Day-to-day-usage-without-a-trivial-workaround-wise, no.