9 ms·
> why do we need XCTest or NSCoding implemented in Swift? Linux compatibility. As long as Foundation is written in Obj-C it can't be ported.
by eunoia 10y ago
> why do we need XCTest or NSCoding implemented in Swift?
Linux compatibility. As long as Foundation is written in Obj-C it can't be ported.
- chris_7 10y agoI get that it's necessary for running them on Linux, I just question the need to do that in the first place, instead of creating new, Swiftier APIs. NSURLSession's delegates have optional requirements, for example, which aren't supported in pure Swift code.