<div>That&#39;s a fair point. I suppose we could have, in the same way as file literals,</div><div><br></div><div>```</div><div>#urlLiteral(resourceName: &quot;<a href="http://example.com">http://example.com</a>&quot;)</div><div>```</div><div><br></div><div>which in an IDE would be automatically generated when someone drops a link and might be rendered as a hyperlink, blue underline and all.</div><div><br></div><div><br><div class="gmail_quote"><div>On Sun, Dec 18, 2016 at 16:17 Erica Sadun &lt;<a href="mailto:erica@ericasadun.com">erica@ericasadun.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">I&#39;d prefer to see a literal URL than a Foundation URL that is string-initializable. I don&#39;t see a URL literal as being in any way necessarily tightly coupled with a Foundation URL type. The point of a literal is that it is inherently typeless and checked at compile time. A color literal depending on context can be a UIColor or NSColor but that&#39;s not specified outside of the use context. The code is portable and cross platform.</div></div><div class="gmail_msg"></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">-- E</div></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">On Dec 17, 2016, at 10:18 PM, Xiaodi Wu via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br class="m_1578985084152999226Apple-interchange-newline gmail_msg"><div class="gmail_msg">With respect to URL specifically, that it&#39;s a Foundation type may change the timeline as well. Various improvements to the Foundation API (and URL in particular) have been proposed here, but if I remember correctly, the stated goal was first to have a complete Swift version of Foundation, preserving the existing API as exactly as possible with no additions or subtractions, and only then to consider Swifty evolution of the APIs. I don&#39;t think the first step is complete yet.<br class="gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg">On Sat, Dec 17, 2016 at 21:46 Step C via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Probably worth pointing out that this topic seems entirely additive. Which means it would be at least a phase 2 proposal, if not later.<br class="gmail_msg"><br><br><br class="gmail_msg"><br><br>&gt; On Dec 17, 2016, at 4:44 PM, Micah Hainline via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br class="gmail_msg"><br><br>&gt;<br class="gmail_msg"><br><br>&gt; Yes, everyone who has what they feel like is a solid workable solution should write it up for URL and we can compare and pick holes in them all until we get something really solid.<br class="gmail_msg"><br><br>&gt;<br class="gmail_msg"><br><br>&gt;&gt; On Dec 17, 2016, at 3:27 PM, David Sweeris &lt;<a href="mailto:davesweeris@mac.com" class="gmail_msg" target="_blank">davesweeris@mac.com</a>&gt; wrote:<br class="gmail_msg"><br><br>&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt; Sent from my iPhone<br class="gmail_msg"><br><br>&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;&gt; On Dec 17, 2016, at 13:20, David Sweeris &lt;<a href="mailto:davesweeris@mac.com" class="gmail_msg" target="_blank">davesweeris@mac.com</a>&gt; wrote:<br class="gmail_msg"><br><br>&gt;&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;&gt; Sent from my iPhone<br class="gmail_msg"><br><br>&gt;&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;&gt;&gt; On Dec 17, 2016, at 13:12, Micah Hainline via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br class="gmail_msg"><br><br>&gt;&gt;&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;&gt;&gt; I&#39;d love a fleshed out elegant example for URL that shows what a complete implementation of that special init method would look like.<br class="gmail_msg"><br><br>&gt;&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt;&gt; I can&#39;t do it now, but I&#39;ll try post one before tomorrow that shows how I&#39;d envision it working.<br class="gmail_msg"><br><br>&gt;&gt;<br class="gmail_msg"><br><br>&gt;&gt; Oh, and to be clear, I&#39;m not trying to &quot;claim&quot; this or anything... if anyone else has ideas, please post them! The more the merrier.<br class="gmail_msg"></blockquote></div></div></blockquote></div><br class="gmail_msg"></div></div></div></div></blockquote></div></div>