Unless I&#39;m mistaken, NSURL is not among the types being renamed in this proposal?<br><div class="gmail_quote"><div dir="ltr">On Mon, May 9, 2016 at 19:06 Charles Srstka via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I’m afraid I generally have to agree with this criticism. For types like NSURL which would make sense to become value types in the future, dropping the prefix does seem as if it would put constraints on future growth.<br>
<br>
I do think the enum hoisting is great, though, and if it were in a separate proposal I’d definitely +1 it.<br>
<br>
Charles<br>
<br>
&gt; On May 9, 2016, at 6:57 PM, Brent Royal-Gordon via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;      • What is your evaluation of the proposal?<br>
&gt;<br>
&gt; I support the enum hoisting and case renaming, but not the dropping of the &quot;NS&quot; prefix quite this widely, for several reasons:<br>
&gt;<br>
&gt; 1. I agree with the critique that &quot;NSCoder&quot; and its ilk should retain their &quot;NS&quot; prefix because they represent something very specific to Foundation, not some general concept of a &quot;coder&quot;. (&quot;JSONSerialization&quot;, on the other hand, *is* something quite generic.)<br>
&gt;<br>
&gt; 2. I think the &quot;NS&quot; prefixes may be a valuable indicator of which types are values and which are references. (For this to be the case, we might need to drop some NS prefixes from certain enums.)<br>
&gt;<br>
&gt; 3. I am wholly unconvinced by the arguments in the &quot;Keep NS on future value types&quot; section.<br>
&gt;<br>
&gt; Another proposal (I&#39;m behind, so I&#39;m not sure if it&#39;s been accepted) suggests that we add a value-typed `URL` to Foundation. Think about what would happen if that proposal were deferred to Swift 4: `NSURL` would be renamed to `URL` in Swift 3, and then Swift 4 would want to use `URL` for something else. At that point, we have several choices, none of them very nice:<br>
&gt;<br>
&gt; * Rename uses of `URL` back to `NSURL`, only one version after making the opposite change. Note that this doesn&#39;t only mean migrating code, but also developers&#39; understanding of the frameworks—people will misread code for a while.<br>
&gt;<br>
&gt; * Choose a different name for the new value-typed `URL`, like `URLValue` or `URI` or something. The preferred type then gets a suboptimal name.<br>
&gt;<br>
&gt; * Deprecate the `URL` name, encourage use of `NSURL` instead, and delay the introduction of the new `URL` for a version or two while the deprecation works its magic. Now we&#39;ve slowed down the evolution of the language.<br>
&gt;<br>
&gt; Any of these seems like a huge own goal next to the alternative of simply leaving all (or most) NS prefixes in place, at least until we feel the main work of adding value types to Foundation is complete.<br>
&gt;<br>
&gt;&gt;      • Is the problem being addressed significant enough to warrant a change to Swift?<br>
&gt;<br>
&gt; Sure, Foundation needs some cleanup. Just not *this* cleanup.<br>
&gt;<br>
&gt;&gt;      • Does this proposal fit well with the feel and direction of Swift?<br>
&gt;<br>
&gt; Yes and no. I worry it&#39;ll slow the adoption of value types by Foundation, which would not be a good thing.<br>
&gt;<br>
&gt;&gt;      • If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?<br>
&gt;<br>
&gt; N/A.<br>
&gt;<br>
&gt;&gt;      • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?<br>
&gt;<br>
&gt; Quick reading, I suppose.<br>
&gt;<br>
&gt; --<br>
&gt; Brent Royal-Gordon<br>
&gt; Architechies<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; swift-evolution mailing list<br>
&gt; <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>