<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 20, 2016 at 8:10 PM, Robert Widmann <span dir="ltr">&lt;<a href="mailto:rwidmann@apple.com" target="_blank">rwidmann@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On Jul 20, 2016, at 5:47 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 20, 2016 at 6:30 PM, Robert Widmann <span dir="ltr">&lt;<a href="mailto:rwidmann@apple.com" target="_blank">rwidmann@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>“The Phase Distinction” is a semantic one, not one built into the import system itself.</div></div></blockquote><div><br></div><div><br></div><div>I understand. To rephrase my question: why introduce this semantic distinction to Swift?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>What I meant is that even the system I’m modeling this on makes a distinction between import directives that actually expose identifiers to modules and import directives that modify identifiers that are already in scope.</div></div></blockquote><div><br></div><div><br></div><div>This is, IMO, very complex. I appreciate enormously the conceptual simplicity of the current Swift approach which, for all of its deficiencies, has only one import directive that does what it says on the tin: it exposes identifiers. I&#39;m not bothered if it gains the ability to expose identifiers differently from one file to the next without keywords firewalled from each other to preserve the notion of phases of import.</div></div></div></div></div></blockquote><div><br></div></span>We are <i>not</i> changing the unqualified Swift import system.  Take a gander at the proposal again, or even the first draft.  Swift has a particularly strange syntax for qualified imports that hasn’t received attention since it was first introduced 2 major versions ago.  That thing allows quite a variety of senseless variants that can be both completely expressed by and subsumed by `using` and `hiding`.</div></div></blockquote><div><br></div><div><br></div><div>My sense, which I think has been echoed by others, is that the proposed solution is syntactically complex, and now that I understand that you&#39;re thinking through a multi-phase concept, also conceptually multilayered. I&#39;m not arguing that the existing syntax for qualified imports doesn&#39;t need changing, only that there is room for radical simplification of the proposed solution IMO. As I re-read this proposal once more, it strikes me that the motivating issues identified (needlessly specific, does not compose, etc.) don&#39;t clearly argue for the specific direction proposed as opposed to alternatives like Joe&#39;s.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>Ne’er the twain shall meet.</div></div></blockquote><div><br></div><div><br></div><div>Yes, you explained this concept very clearly as it applies to Agda. But I just don&#39;t see why we should care to have this distinction. Yet you are very adamant about it. What am I missing?</div><div><br></div><div><br></div></div></div></div></div></blockquote><div><br></div></span><div>We should care because that is precisely what the two operations <i>do</i>.  `using` and `hiding` introduce things or remove things from scope which is a very different operation from taking something that is already in scope and giving it a new name.</div></div></div></blockquote><div><br></div><div><br></div><div>Perhaps I&#39;m not phrasing my question very cogently. Of course, if we are to have `using`, `hiding`, and `renaming`, we must observe the distinctions between them.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div>If you don’t want to think of them as part of the same import process, think of them instead in terms of their Swift equivalents today.  </div><div><br></div><div>import Foundation using (Date) == import struct Foundation.Date</div><div>import Foundation hiding (Date) == import Foundation; @unavailable(*, “…&quot;) typealias Date = Foundation.Date</div><div>import Foundation using (TimeInterval) renaming (TimeInterval, to: Time) == import typealias Foundation.TimeInterval; typealias Time = Foundation.TimeInterval</div><div><br></div><div>Notice how it takes two declarations to create a renaming? It is not simple to drop being explicit about which names are actually in scope and expect a renaming to just implicitly slip in a using declaration.  Nor is it simple to imagine _ as some magical namespace that you can pack away unwanted definitions into.  using and hiding are very physical things and the rules for their behavior should be obvious and unambiguous - the proposal contains some examples of valid and invalid declarations to help with that.</div></div></div></blockquote><div><br></div><div><br></div><div>The examples worry me, in fact. That we might need to contemplate the behavior of a statement such as `import Foo using () hiding () hiding () using () hiding ()` suggests it&#39;s perhaps a little over-engineered for the purpose. Why allow chaining of `using` and `hiding` anyway? The only example given is of a nested type, which suggests nesting would be the way to go:</div><div><br></div><div>```</div><div>import Swift using (String hiding (UTF8View), Int, Double)</div><div>```</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>A qualified import is defining a procedure to import a subset of identifiers.  That’s it.</div></div></blockquote><div><br></div><div><br></div><div>Right, and I think an entirely different way of thinking about this would be much easier to learn and teach. Whether using, hiding, and renaming are to be supported now, later, or never, my mental picture of how it fits together is quite simple:</div><div><br></div><div>Analogy--suppose I am a pickle merchant. I import Foo-branded pickles from vendor X. I must re-label them with the right nutritional information before I can sell in this country. I can have labels printed saying that they are Foo-branded pickles. I can have them branded as Bar-branded pickles. Or I can have the labels deliberately misprinted, and then these pickles will never see the light of day. Point is, each of these is an active choice; even if I sell these as Bar-branded pickles, it&#39;s not that these pickles reached the domestic market as Foo-branded pickles, after which I scratched out the label with a Sharpie. These pickles had no domestic brand until I gave it one.</div><div><br></div><div>Back to importing modifiers--I import type Foo from module X. In my code, I need to make a choice to call this type Foo, or Bar, or nothing at all. In other words, there is only one directive, importing, and I am importing `Foo as Foo`, `Foo as Bar`, or `Foo as _`. Meanwhile, `import X using Foo` or `import X.Foo` (whatever the color of the bikeshed) would just be a shorthand for `import X using Foo as Foo` or `import X.Foo as Foo`. In this conceptualization, if I choose to import Foo as Bar, it&#39;s not that I&#39;m importing Foo into the scope, then changing the identifier to Bar. The only identifier it ever has in this scope is Bar.</div></div></div></div></div></blockquote><div><br></div></span><div>And I’m the one with the complex semantics? :)</div></div></div></blockquote><div><br></div><div><br></div><div>I&#39;m just trying to put into words what I&#39;m familiar with after working in other languages such as Python.<br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div>How about this:</div><div><br></div><div>Using and Hiding relate to each other the way &amp;&amp; and || do for bools.  If &amp;&amp; can be said to “prefer to return false, but return true given no other alternative” and || can be said to “prefer returning true, but return false given no other alternative”, then hiding can be said to “prefer importing all identifiers unless told not to in specific instances” and using can be said to “prefer importing no identifiers unless told to in specific instances”.  </div><div><br></div><div>import Module.Name using (A, B, C, …) === import Module.Name hiding (ALL_NAMES - {A, B, C, ...})</div><div><div>import Module.Name hiding (A, B, C, …) === import Module.Name using (ALL_NAMES - {A, B, C, ...})</div><div><br></div><div>That seems a particularly simple explanation to me.  Let me know if anything else is unclear.</div></div></div></div></blockquote><div><br></div><div><br></div><div>Your mental framework is clear. It&#39;s one that&#39;s just not found in very many other languages. Many of these have import declarations (or similar) with simpler syntax, yet they seem to address at least some of the problems that motivate your proposal. I guess my question in the end is, why have you chosen Agda as the basis for qualified imports in Swift and not one of these other languages?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><br></div></div><div><div class="h5"><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div>On Jul 20, 2016, at 4:17 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 20, 2016 at 4:57 PM, Robert Widmann<span> </span><span dir="ltr">&lt;<a href="mailto:rwidmann@apple.com" target="_blank">rwidmann@apple.com</a>&gt;</span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><div><div><blockquote type="cite"><div>On Jul 20, 2016, at 2:52 PM, Robert Widmann via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite"><div><br>On Jul 20, 2016, at 2:35 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br><div><br><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div class="gmail_quote" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">On Wed, Jul 20, 2016 at 4:24 PM, Robert Widmann<span> </span><span dir="ltr">&lt;<a href="mailto:rwidmann@apple.com" target="_blank">rwidmann@apple.com</a>&gt;</span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><span><blockquote type="cite"><div>On Jul 20, 2016, at 2:19 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 20, 2016 at 4:06 PM, Robert Widmann<span> </span><span dir="ltr">&lt;<a href="mailto:rwidmann@apple.com" target="_blank">rwidmann@apple.com</a>&gt;</span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><span><blockquote type="cite"><div>On Jul 20, 2016, at 2:04 PM, Robert Widmann via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite"><div><br>On Jul 20, 2016, at 1:59 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br><div>Why is hiding in-scope but renaming out-of-scope?</div></blockquote><div><br></div><div><br></div><div>Because hiding and renaming can be used in combination to subset out APIs, not alter them.</div><br></div></div></blockquote><div><br></div></span><div>I mistyped.  Should be &quot;Because hiding and using can be used in combination to subset out APIs, not alter them.&quot;</div></div></div></blockquote><div><br></div><div><br></div><div>Sure, I buy that.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite"><div>Both are additive to Swift,<span> </span></div></blockquote><div><br></div><div>As part of this proposal, both are source-breaking.</div></div></div></blockquote></div></div></div></div></blockquote><div><br></div><div>I don&#39;t see how. If hiding were cut from the proposal, adding it later with even the exact syntax you propose should break no pre-existing code--am I wrong?</div></div></div></div></div></blockquote><div><br></div></span><div>Renaming the way we originally laid it out would certainly be additive.  The way you have it laid out would overlap a bit with hiding, sure, but it is still additive and (IMO, but I’m probably among a tiny minority of users that has used a proof assistant’s syntax as the basis for a proposal!) a good thing to have.</div></div></div></blockquote><div><br></div><div><br></div><div>Sorry, I fear I&#39;ve incorrectly communicated the point I was trying to make. I&#39;m not advocating here for inclusion of renaming as part of this proposal. I simply think that--even though I buy your claim that hiding and using both subset out APIs--hiding has more affinity with renaming and the two facilities probably ought to be considered together, whenever that is.</div><div><br></div><div>Thus, I&#39;m suggesting that it would be feasible to postpone discussion of hiding until such future time as a fully fleshed out renaming scheme is proposed. A revamped source-breaking import syntax without either hiding or renaming could be put in place now, and future addition of hiding and/or renaming would not have to be source-breaking. Is there something wrong with this argument?<br></div><div><br></div></div></div></blockquote><div><br></div><div>There is still a useful to distinction to be made between explicitly renaming an API and explicitly hiding an API.  Scala’s syntax to rename to underbar is a convenient notation for that kind of thing, but it goes against making qualified imports explicit and it means that renaming necessarily has to import identifiers into scope as well as rename them.  What the OP (maybe it was you, sorry if it was) meant by “equivalent” missed the point that </div><div><br></div><div>import Swift hiding (String)</div><div><br></div><div>doesn’t translate into</div><div><br></div><div>import Swift renaming (String, to: _)</div><div><br></div><div>it translates into</div><div><br></div><div>import Swift hiding () renaming (String, to: _)</div><div><br></div><div>Renaming introducing identifiers into scope seems like a phase-shift and is not something the verb “rename” implies should happen here.  It’s an interesting little hole in Agda’s module system that you can use </div><div><br></div><div>open A hiding (xs) renaming (ys to zs)</div><div><br></div><div>to mean</div><div><br></div><div>open A using (A; xs; ys) renaming (ys to zs)</div><div><br></div></div></div></blockquote><div><br></div></div></div><div>Actually, scratch that.  Their documentation explicitly mentions that hiding and renaming may not be mixed because of the phase distinction and recommend the using translation above as the way to go.</div></div></div></blockquote><div><br></div><div><br></div><div>This is very illuminating. I think I&#39;ve rather misunderstood what it is you&#39;re proposing. I wonder if others did also.</div><div><br></div><div>The syntax you proposed seemed cumbersome to me because my mental model of importing (informed by my probably superficial understanding of vanilla procedural programming languages) has only one phase: importing. This is why I proposed radically simplifying the spelling. To me, all of these operations are just sugar on a single import phase, where &quot;stuff&quot; from outside the module is &quot;brought into&quot; the module, either with the same name (&quot;using&quot;), a different name (&quot;renaming&quot;), or no name (&quot;hiding&quot;).</div><div><br></div><div>But what you&#39;re saying here--if I understand correctly--is that you&#39;re proposing a multi-phase import system, where the possible phases, which can be composed in varying orders, are &quot;using&quot;, &quot;hiding&quot;, and &quot;renaming&quot;. This is much, much more elaborate than I had contemplated. So beyond the bikeshedding of syntax, I&#39;d ask: why do we need this multi-phase model of importing?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><br><blockquote type="cite"><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite"><div><div class="gmail_quote" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><span><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite"><div>and as has been argued by others, the former is a special case of the latter.<br></div></blockquote><div><br></div><div>A special case that cannot cause large-scale file-relative changes to APIs.  Renaming is primarily used in other languages that treat free functions as more canonical than we do, or allow operator definitions that can be used as notation.<span> </span></div></div></div></blockquote></div></div></div></div></blockquote><div><br></div><div>I don&#39;t know about &#39;primary use,&#39; but the most common use I&#39;ve experienced in Python, for example, is the mundane task of importing module Foo2 as Foo.</div><div> </div></div></div></div></div></blockquote><div><br></div></span><div>And I still want that kind of syntax.  I just want to get the breaking changes out of the way to make room for it in the future.</div></div></div></blockquote><div><br></div><div><br></div><div>Right. See above about my argument as to which parts of your proposal have to be source-breaking, and which don&#39;t.</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><span><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>In those cases, you often have your own notation you’d like to use.  In Swift, such changes should be rare enough that if you can’t solve them with a disambiguating qualified import then you can just redeclare the identifier some other way (typealias, top-level let, wrapper class, whatever).</div></div></div></blockquote></div></div></div></div></blockquote><div><br></div><div>You&#39;ve already stripped out renaming of members from the proposal. I agree wholeheartedly. The only flavor of renaming I&#39;m thinking of here is equivalent to a fileprivate typealias and hiding, which cannot be done in this version of the proposal because hiding always comes before typealiasing and you can&#39;t typealias what isn&#39;t imported. It isn&#39;t about altering APIs any more than a fileprivate typealias can be thought of as altering APIs.</div></div></div></div></div></blockquote><div><br></div></span><div>In the sense that you can’t use the original identifier if you rename it, it is an alteration.  John brought up a great point about exporting these things and how it could be a potentially dangerous thing.  Even used locally, there’s the potential for people to specify 500 lines of import renaming crap that has to be copypasta’d throughout the codebase to maintain that particular style - not a use-case I’ve ever seen, but the potential is there.</div></div></div></blockquote><div><br></div><div><br></div><div>This is, I think, a spurious argument. I can equally have 500 lines of private typealiased crap that has to be copypasta&#39;d.</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><blockquote type="cite"><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite"><div><div class="gmail_quote"><div dir="ltr">On Wed, Jul 20, 2016 at 15:55 Brandon Knope &lt;<a href="mailto:bknope@me.com" target="_blank">bknope@me.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div></div><div>I meant is there any reason for requiring parentheses </div></div><div dir="auto"><div><br>On Jul 20, 2016, at 4:53 PM, Robert Widmann &lt;<a href="mailto:rwidmann@apple.com" target="_blank">rwidmann@apple.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>Renaming is out of scope for this proposal, that’s why.<div><br><div><blockquote type="cite"><div>On Jul 20, 2016, at 1:26 PM, Brandon Knope &lt;<a href="mailto:bknope@me.com" target="_blank">bknope@me.com</a>&gt; wrote:</div><br><div><div dir="auto"><div></div><div>I prefer this 100x more</div><div><br></div><div>Is there any reason why this wouldn&#39;t work?</div><div><br></div><div>Brandon </div><div><br>On Jul 20, 2016, at 4:13 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>Yeah, I&#39;d be happy to lose the parentheses as well.<br><br>In the last thread, my take on simplifying the proposed syntax was:<br><br>```<br>import Swift using String, Int<br><br>// or, for hiding:<br>import Swift using Int as _<br>```<br><br>The key simplification here is that hiding doesn&#39;t need its own contextual keyboard, especially if we support renaming (a huge plus in my book), as renaming to anything unused (or explicitly to `_`) is what hiding is all about.<br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 20, 2016 at 15:01 Brandon Knope &lt;<a href="mailto:bknope@me.com" target="_blank">bknope@me.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div></div><div style="direction:inherit"><br></div><div><br>On Jul 20, 2016, at 3:08 PM, Xiaodi Wu via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">As Joe and others mentioned in the previous thread, this syntax could be greatly simplified in ways that resemble analogous facilities in other languages. In particular I think it&#39;s alarmingly asymmetrical that, in your proposal, `import Swift using (String)` imports *only* String while `import Swift hiding (String)` imports *everything but* String. This becomes evident when chained together:<div><br></div><div>```</div><div>import Swift using (String, Int)</div><div>// imports only String and Int</div><div>import Swift using (String, Int) hiding (String)</div><div>// imports only Int</div><div>import Swift hiding (String, Int)</div><div>// imports everything except String and Int</div><div>import Swift hiding (String, Int) using (String)</div><div>// imports *nothing*? nothing except String? everything except Int? confusing.</div><div>```</div><div><br></div><div>By contrast, Joe&#39;s proposed syntax (with some riffs) produces something much more terse *and* much more clear:</div><div><br></div><div>```</div><div>import Swift.*</div><div>import Swift.(Int as MyInt, *)</div><div>import Swift.(Int as _, *)</div><div>```</div></div></div></blockquote><div style="direction:inherit"><br></div></div><div dir="auto"><div style="direction:inherit">I really don&#39;t find this much clearer than the proposed one. The proposal reads much clearer. </div><div style="direction:inherit"><br></div><div style="direction:inherit">Joe&#39;s syntax has a lot going on in my opinion.</div><div style="direction:inherit"><br></div><div style="direction:inherit">For the proposal, do we really need the parentheses? It makes the syntax look heavier</div></div><div dir="auto"><div style="direction:inherit"><br></div><div style="direction:inherit">Brandon </div></div><div dir="auto"><div style="direction:inherit"><br></div><div style="direction:inherit"><br></div><div style="direction:inherit"><br></div><blockquote type="cite"><div><div dir="ltr"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 20, 2016 at 1:52 PM, Robert Widmann via swift-evolution<span> </span><span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Hello all,<div><br></div><div>I’d like to thank the members of the community that have guided the revisions of this proposal.  We have decided to heed the advice of the community and break down our original proposal on modules and qualified imports into source-breaking (qualified imports) and additive (modules) proposals.  As qualified imports is the change most suited to Swift 3, we are pushing that proposal now as our final draft.</div><div><br></div><div>It can be had inline with this email, on <a href="https://github.com/apple/swift-evolution/pull/440" target="_blank">Github</a>, or <a href="https://gist.github.com/CodaFi/42e5e5e94d857547abc381d9a9d0afd6" target="_blank">as a gist</a>.</div><div><br></div><div>Thanks,</div><div><br></div><div>~Robert Widmann</div><div><br></div><div><h1 style="margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;margin-top:0px!important;background-color:rgb(255,255,255)">Qualified Imports Revisited</h1><h1 style="margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;margin-top:0px!important;background-color:rgb(255,255,255)"><ul style="padding-left:2em;margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal"><li>Proposal: <a href="https://gist.github.com/CodaFi/NNNN-first-class-qualified-imports.md" style="color:rgb(64,120,192);text-decoration:none;background-color:transparent" target="_blank">SE-NNNN</a></li><li style="margin-top:0.25em">Authors: <a href="https://github.com/codafi" style="color:rgb(64,120,192);text-decoration:none;background-color:transparent" target="_blank">Robert Widmann</a>, <a href="https://github.com/griotspeak" style="color:rgb(64,120,192);text-decoration:none;background-color:transparent" target="_blank">TJ Usiyan</a></li><li style="margin-top:0.25em">Status: <span style="font-weight:600">Awaiting review</span></li><li style="margin-top:0.25em">Review manager: TBD</li></ul></h1><h2 style="margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;background-color:rgb(255,255,255)"><a href="https://gist.github.com/CodaFi/42e5e5e94d857547abc381d9a9d0afd6#introduction" style="color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1;background-color:transparent" target="_blank"><u></u><u></u><u></u><u></u></a>Introduction</h2><h1 style="margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;margin-top:0px!important;background-color:rgb(255,255,255)"><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">We propose a complete overhaul of the qualified imports syntax and semantics.</p></h1><h2 style="margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;background-color:rgb(255,255,255)"><a href="https://gist.github.com/CodaFi/42e5e5e94d857547abc381d9a9d0afd6#motivation" style="color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1;background-color:transparent" target="_blank"><u></u><u></u><u></u><u></u></a>Motivation</h2><h1 style="margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;margin-top:0px!important;background-color:rgb(255,255,255)"><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">The existing syntax for qualified imports from modules is needlessly explicit, does not compose, and has a default semantics that dilutes the intended meaning of the very operation itself. Today, a qualified import looks something like this</p><div style="margin-bottom:16px;font-size:16px;font-weight:normal"><pre style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px;background-color:rgb(247,247,247)"><span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(167,29,93)">class</span> <span style="color:rgb(0,134,179)">Foundation.Date</span></pre></div><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">This means that clients of Foundation that wish to see only <code style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;padding:0.2em 0px;margin:0px;border-radius:3px;background-color:rgba(0,0,0,0.0392157)">Date</code> must know the exact kind of declaration that identifier is. In addition, though this import specifies exactly one class be imported from Foundation, the actual semantics mean Swift will recursively open all of Foundation&#39;s submodules so you can see, and use, every other identifier anyway - and they are not filtered from code completion. Qualified imports deserve to be first-class in Swift, and that is what we intend to make them with this proposal.</p></h1><h2 style="margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;background-color:rgb(255,255,255)"><a href="https://gist.github.com/CodaFi/42e5e5e94d857547abc381d9a9d0afd6#proposed-solution" style="color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1;background-color:transparent" target="_blank"><u></u><u></u><u></u><u></u></a>Proposed solution</h2><h1 style="margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;margin-top:0px!important;background-color:rgb(255,255,255)"><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">The grammar and semantics of qualified imports will change completely with the addition of <em>import qualifiers</em> and <em>import directives</em>. We also introduce two new contextual keywords: <code style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;padding:0.2em 0px;margin:0px;border-radius:3px;background-color:rgba(0,0,0,0.0392157)">using</code> and <code style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;padding:0.2em 0px;margin:0px;border-radius:3px;background-color:rgba(0,0,0,0.0392157)">hiding</code>, to facilitate fine-grained usage of module contents.</p></h1><h2 style="margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;background-color:rgb(255,255,255)"><a href="https://gist.github.com/CodaFi/42e5e5e94d857547abc381d9a9d0afd6#detailed-design" style="color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1;background-color:transparent" target="_blank"><u></u><u></u><u></u><u></u></a>Detailed design</h2><h1 style="margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;margin-top:0px!important;background-color:rgb(255,255,255)"><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">Qualified import syntax will be revised to the following</p><pre style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:16px;font-weight:normal;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px;background-color:rgb(247,247,247)"><code style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;padding:0px;margin:0px;border-radius:3px;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent">import-decl -&gt; import &lt;import-path&gt; &lt;(opt) import-directive-list&gt;
import-path -&gt; &lt;identifier&gt;
            -&gt; &lt;identifier&gt;.&lt;identifier&gt;
import-directive-list -&gt; &lt;import-directive&gt;
                      -&gt; &lt;import-directive&gt; &lt;import-directive-list&gt;
import-directive -&gt; using (&lt;identifier&gt;, ...)
                 -&gt; hiding (&lt;identifier&gt;, ...)
</code></pre><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">This introduces the concept of an import <em>directive</em>. An import directive is a file-local modification of an imported identifier. A directive can be one of 2 operations:</p><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">1) <em>using</em>: The <em>using</em> directive is followed by a list of identifiers for non-member nominal declarations within the imported module that should be exposed to this file. </p><div style="margin-bottom:16px;font-size:16px;font-weight:normal"><pre style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px;background-color:rgb(247,247,247)"><span style="color:rgb(150,152,150)">// The only visible parts of Foundation in this file are </span>
<span style="color:rgb(150,152,150)">// Foundation.Date, Foundation.DateFormatter, and Foundation.DateComponents</span>
<span style="color:rgb(150,152,150)">//</span>
<span style="color:rgb(150,152,150)">// Previously, this was</span>
<span style="color:rgb(150,152,150)">// import class Foundation.Date</span>
<span style="color:rgb(150,152,150)">// import class Foundation.DateFormatter</span>
<span style="color:rgb(150,152,150)">// import class Foundation.DateComponents</span>
<span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(0,134,179)">Foundation</span> using (Date, DateFormatter, DateComponents)</pre></div><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">2) <em>hiding</em>: The <code style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;padding:0.2em 0px;margin:0px;border-radius:3px;background-color:rgba(0,0,0,0.0392157)">hiding</code> directive is followed by a list of identifiers for non-member nominal declarations within the imported module that should be hidden from this file.</p><div style="margin-bottom:16px;font-size:16px;font-weight:normal"><pre style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px;background-color:rgb(247,247,247)"><span style="color:rgb(150,152,150)">// Imports all of Foundation except `Date`</span>
<span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(0,134,179)">Foundation</span> hiding (Date)</pre></div><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">As today, all hidden identifiers do not hide the type, they merely hide that type’s members and its declaration. For example, this means values of hidden types are still allowed. Unlike the existing implementation, using their members is forbidden.</p><div style="margin-bottom:16px;font-size:16px;font-weight:normal"><pre style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px;background-color:rgb(247,247,247)"><span style="color:rgb(150,152,150)">// Imports `DateFormatter` but the declaration of `Date` is hidden.</span>
<span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(0,134,179)">Foundation</span> using (DateFormatter)

<span style="color:rgb(167,29,93)">var</span> d <span style="color:rgb(167,29,93)">=</span> DateFormatter()<span style="color:rgb(167,29,93)">.</span>date(from: <span style="color:rgb(24,54,145)"><span>&quot;</span>...<span>&quot;</span></span>) <span style="color:rgb(150,152,150)">// Valid</span>
<span style="color:rgb(167,29,93)">var</span> dt <span style="color:rgb(167,29,93)">:</span> Date <span style="color:rgb(167,29,93)">=</span> DateFormatter()<span style="color:rgb(167,29,93)">.</span>date(from: <span style="color:rgb(24,54,145)"><span>&quot;</span>...<span>&quot;</span></span>) <span style="color:rgb(150,152,150)">// Invalid: Cannot use name of hidden type.</span>
d<span style="color:rgb(167,29,93)">.</span>addTimeInterval(<span style="color:rgb(0,134,179)">5</span><span style="color:rgb(167,29,93)">.</span><span style="color:rgb(0,134,179)">0</span>) <span style="color:rgb(150,152,150)">// Invalid: Cannot use members of hidden type.</span></pre></div><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">Import directives chain to one another and can be used to create a fine-grained module import:</p><div style="margin-bottom:16px;font-size:16px;font-weight:normal"><pre style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px;background-color:rgb(247,247,247)"><span style="color:rgb(150,152,150)">// This imports Swift.Int, Swift.Double, and Swift.String but hides Swift.String.UTF8View</span>
<span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(0,134,179)">Swift</span> using (<span style="color:rgb(0,134,179)">String</span>, <span style="color:rgb(0,134,179)">Int</span>, <span style="color:rgb(0,134,179)">Double</span>) 
             hiding (<span style="color:rgb(0,134,179)">String</span><span style="color:rgb(167,29,93)">.</span>UTF8View)</pre></div><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">Directive chaining occurs left-to-right:</p><div style="margin-bottom:16px;font-size:16px;font-weight:normal"><pre style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px;background-color:rgb(247,247,247)"><span style="color:rgb(150,152,150)">// This says to 1) Use Int 2) Hide String 3) rename Double to Triple.  It is invalid</span>
<span style="color:rgb(150,152,150)">// because 1) Int is available 2) String is not, error.</span>
<span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(0,134,179)">Swift</span> using (<span style="color:rgb(0,134,179)">Int</span>) hiding (<span style="color:rgb(0,134,179)">String</span>)
<span style="color:rgb(150,152,150)">// Valid.  This will be merged as `using (Int)`</span>
<span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(0,134,179)">Swift</span> using () using (<span style="color:rgb(0,134,179)">Int</span>)
<span style="color:rgb(150,152,150)">// Valid.  This will be merged as `hiding (String, Double)`</span>
<span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(0,134,179)">Swift</span> hiding (<span style="color:rgb(0,134,179)">String</span>) hiding (<span style="color:rgb(0,134,179)">Double</span>) hiding ()
<span style="color:rgb(150,152,150)">// Valid (if redundant). This will be merged as `using ()`</span>
<span style="color:rgb(167,29,93)">import</span> <span style="color:rgb(0,134,179)">Swift</span> using (<span style="color:rgb(0,134,179)">String</span>) hiding (<span style="color:rgb(0,134,179)">String</span>)</pre></div><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">Because import directives are file-local, they will never be exported along with the module that declares them.</p></h1><h2 style="margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;background-color:rgb(255,255,255)"><a href="https://gist.github.com/CodaFi/42e5e5e94d857547abc381d9a9d0afd6#impact-on-existing-code" style="color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1;background-color:transparent" target="_blank"><u></u><u></u><u></u><u></u></a>Impact on existing code</h2><h1 style="margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;margin-top:0px!important;background-color:rgb(255,255,255)"><p style="margin-top:0px;margin-bottom:16px;font-size:16px;font-weight:normal">Existing code that is using qualified module import syntax (<code style="font-family:Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:13.6px;padding:0.2em 0px;margin:0px;border-radius:3px;background-color:rgba(0,0,0,0.0392157)">import {func|class|typealias|class|struct|enum|protocol} &lt;qualified-name&gt;</code>) will be deprecated and should be removed or migrated. </p></h1><h2 style="margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;background-color:rgb(255,255,255)"><a href="https://gist.github.com/CodaFi/42e5e5e94d857547abc381d9a9d0afd6#alternatives-considered" style="color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1;background-color:transparent" target="_blank"><u></u><u></u><u></u><u></u></a>Alternatives considered</h2><h1 style="margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;margin-top:0px!important;background-color:rgb(255,255,255)"><div style="margin-top:0px;font-size:16px;font-weight:normal;margin-bottom:0px!important">A previous iteration of this proposal introduced an operation to allow the renaming of identifiers, especially members. The original intent was to allow file-local modifications of APIs consumers felt needed to conform to their specific coding style. On review, we felt the feature was not as significant as to warrant inclusion and was ripe for abuse in large projects.</div></h1></div></div><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><br></blockquote></div><br></div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></div></blockquote></div></div></blockquote></div></div></blockquote></div><br></div></div></blockquote></div></blockquote></div></div></blockquote></div><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">swift-evolution mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="mailto:swift-evolution@swift.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">swift-evolution@swift.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">swift-evolution mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="mailto:swift-evolution@swift.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">swift-evolution@swift.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div>
</div></blockquote></div></div></div><br></div></blockquote></div><br></div></div>