<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">But if the NS- prefix is removed now, then it will make it more painful to have breaking changes down the road. I’d prefer to see breaking changes happen and the introduction of new completely modern APIs. Even just protocols that the NS- Foundation can implement.</div><div class=""><br class=""></div><div class="">Say for example, a FileReferenceProtocol and a URLProtocol, where NSURL could conform to both, but a modern implementation could have two separate concrete struct types. Maybe that’s not feasible.</div><div class=""><br class=""></div><div class="">It’s just a shame to say ‘goodbye Objective-C, hello Swift clean slate’, and then bring Foundation along for the ride as a core part for writing new modern applications.</div><div class=""><br class=""></div><div class="">It would be great in my mind to have a plan to transition to a modern ‘Foundation 2.0’. Say made using Swift 4.0 and its possible concurrency operators. I think that would be the time to drop the NS- prefixes.</div><br class=""><div><blockquote type="cite" class=""><div class="">On 9 May 2016, at 3:09 AM, Michael Sheaver via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Foundation is indeed tightly coupled with the Apple ecosystem; however with the movement to open source, I think we are approaching a fork in the <div class="">road regarding this discussion. Like David articulated, Foundation either will need to her decoupled from its Apple historical roots or a parallel non-Apple Foundation will need to be developed. We all know how difficult and painful it is to maintain two different code sets that do mostly the same thing. My humble recommendation is that we start looking at decoupling foundation from its roots and a good first step would be to remove the NS- prefix. This change would do many positive things, including alerting developers that change is coming.</div><div class=""><br class=""></div><div class="">A long-term concern that I have is that if you do not begin the enormous task of at least beginning to remove Apple-centric dependencies, then sometime down the road someone outside the Apple environment will fork Swift and take it in ways out of our control.</div><div class=""><br class=""></div><div class="">In short, I am in favor of at least beginning the move toward removing NS- from Foundation.<br class=""><div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="" class=""><div style="margin: 0px; font-size: 20px; line-height: normal; font-family: Chalkduster; color: rgb(89, 67, 163);" class=""><br class=""></div></div></div></span></div></span></div></div><div class=""><blockquote type="cite" class=""><div class="">On May 8, 2016, at 11:16 AM, Josh Parmenter via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">David has articulated what I couldn't quite put my finger on, and I agree.<br class="">This also comes around to something I probably missed elsewhere in the discussion- but is the proposal to make NS classes just look like thus don't have NS in Swift? Or is it to write Swift versions of those classes that duplicate the functionality of those classes in Swift (for instance, giving String the full interface of NSString without actually having it call into NSString obj-c code?).<br class="">I tried glancing through the discussion and couldn't really find an answer to this (though I did it quickly, so my apologies if this is an obvious question that has already been answered).<br class="">Best<br class="">Josh<br class=""><br class="">Sent from my iPhone<br class=""><br class="">On May 8, 2016, at 00:41, David Waite via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><<a href="mailto:swift-evolution@swift.org" class="">mailto:swift-evolution@swift.org</a>>> wrote:<br class=""><br class="">It's not a goal to rewrite Foundation from scratch in Swift. All Swift apps that are running out there today are in fact using a combination of Swift, Objective-C, C, C++, various flavors of assembly, and more. The goal is to present the existing API of Foundation in a way that fits in with the language today while allowing us to iteratively improve it over time.<br class=""><br class="">Perhaps my concern is a higher level - I don't understand where Foundation is envisioned going.<br class=""><br class="">From my perspective, Foundation is highly coupled to Apple platforms and Objective-C on one side, and part of the Swift standard library on the other. Perhaps long-term Foundation should be split into two new things - a core library for cross-platform swift development, and the infrastructure for Objective-C interoperability on apple platforms only.<br class=""><br class="">-DW<br class="">_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><<a href="mailto:swift-evolution@swift.org" class="">mailto:swift-evolution@swift.org</a>><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="">_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></body></html>