-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decoupling Swift from Cocoa's Foundation #54
Comments
Yeah, I'm in favor of this. I don't remember many tests actually using Foundation, but I don't know about the examples. |
This is a good idea. We should always prefer the native Swift types over the Objective-C counterparts. But, I think we should hold off on this until at least the official release of Swift 2.0. We'll have a lot of work to do updating tests anyway. We should probably start a thread on Swift 2 migration. Some of the changes like I'd also like to reorder the exercises. I ran through the first few with a new group the other day and man, doing Bob second was brutal. String process was tedious, and I think we'd be better off having some quicker exercises early. |
This brings up another question: |
I think we should just ditch the 1.2 stuff when we migrate. Maintaining two sets of exercise will be a real pain, and adoption rates will probably be astronomical like they are with iOS. I think Xcode is an automatic update from the App Store. |
Sounds good. |
Swift really needs an NSDate native also Regular expression. |
Swift and the Swift standard library are going to be open sourced by the end of 2015.
This got me thinking about the use of Foundation classes ( NSDate, NSMutableArray, NSString etc ) in the problems.
Should we make it a point to decouple the tests and examples to focus on "pure" swift implementations since Foundation is not going to be available for Linux?
In xcode 7 beta 5 there were some changes to NString and String that dealt with paths.
https://forums.developer.apple.com/thread/13688
This is an indication that swift types are becoming more "pure" maybe because of the open source release.
This would mean not importing foundation.
Edit: 9-9-15
Current list of problems that depend on Foundation.
The text was updated successfully, but these errors were encountered: