As Matthew mentioned, the rules can certainly later be relaxed, but given that this proposal has the compiler generating fix-its for subclasses in second position, is there a reason other than stylistic for demanding MyClass &amp; MyProtocol instead of MyProtocol &amp; MyClass?<br><br>From a naive perspective, it seems that if the compiler understands my meaning perfectly, it should just accept that spelling rather than complain.<br><div class="gmail_quote"><div dir="ltr">On Sun, Jan 29, 2017 at 11:30 Matthew Johnson 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"><div style="word-wrap:break-word" class="gmail_msg">Hi David,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">This looks like a great start.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">One thing we should consider is whether we tie this proposal so tightly to classes or whether it might be better to call these supertype constraints.  The feature might also be useful for value types if / when Swift gets value subtyping.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">One enhancement that might be worth considering.  Specifically, allowing protocols to declare a specific supertype requirement in the place where a `class` constraint would usually be found.  After this proposal we could already do something similar using a `class` constraint to define a protocol and a typealias to bind it to the supertype requirement.  It seems like allowing users to state this more directly would be a good idea.</div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><span style="color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">As only the first element in the existential composition syntax can be a class type, and by extending this rule to typealias expansions, we can make sure that we only need to read the first element to know if it contains a class requirement.</span></div><div class="gmail_msg"><br class="gmail_msg"></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">I think this is unnecessarily limiting in a couple of ways.  I agree that a class should come first if it is mentioned explicitly***.  I am less sure we should require this when the type is part of a typealias combined with other protocol requirements.  </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">For example, one use case I remember discussing with Austin is refining supertype requirements.  If I have a typealias which requires a superclass `Base` I should be able to form an existential using that typealias that *refines* that requirement to some type *Derived* which is a non-final subtype of `Base`.  This would require syntax that allows us to put a class name in the first position, but also mention a typealias with a supertype requirement in a subsequent position.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Matthew</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">*** One argument against requiring a class to come first is that we could conceptualize `&amp;` as a type operator with a handful of overloads.  This would include both lhs and rhs are “protocol only kinds” as well as overloads with a “protocol only kind” in either lhs or rhs and a “supertype kind” in the other position.  The tricky part of pulling this off would be including an overload where both lhs and rhs have a “supertype kind”, but only when the operands have a subtype / supertype relationship with each other.  </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I suspect this conceptualization isn’t worth the complexity it brings, but it is tempting to try and view `&amp;` as a type operator.  As long as this only involves a loosening of restrictions it could probably be introduced as an additive change down the road.</div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">On Jan 29, 2017, at 10:39 AM, David Hart &lt;<a href="mailto:david@hartbit.com" class="gmail_msg" target="_blank">david@hartbit.com</a>&gt; wrote:</div><br class="m_-2281634970773617018Apple-interchange-newline gmail_msg"><div class="gmail_msg"><div style="word-wrap:break-word" class="gmail_msg">Hello,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">As promised, I wrote the first draft of a proposal to add class requirements to the existential syntax. Please let me know what you think.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><a href="https://github.com/hartbit/swift-evolution/blob/subclass-existentials/proposals/XXXX-subclass-existentials.md" class="gmail_msg" target="_blank">https://github.com/hartbit/swift-evolution/blob/subclass-existentials/proposals/XXXX-subclass-existentials.md</a></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Regards,</div><div class="gmail_msg">David.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><h1 style="box-sizing:border-box;margin-right:0px;margin-bottom:16px;margin-left:0px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255);margin-top:0px!important" class="gmail_msg">Existentials for classes conforming to protocols</h1><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg"><li style="box-sizing:border-box" class="gmail_msg">Proposal: <a href="https://github.com/hartbit/swift-evolution/blob/subclass-existentials/proposals/XXXX-subclass-existentials.md" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none" class="gmail_msg" target="_blank">SE-XXXX</a></li><li style="box-sizing:border-box;margin-top:0.25em" class="gmail_msg">Authors: <a href="http://github.com/hartbit/" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none" class="gmail_msg" target="_blank">David Hart</a>, <a href="http://github.com/austinzheng" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none" class="gmail_msg" target="_blank">Austin Zheng</a></li><li style="box-sizing:border-box;margin-top:0.25em" class="gmail_msg">Review Manager: TBD</li><li style="box-sizing:border-box;margin-top:0.25em" class="gmail_msg">Status: TBD</li></ul><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)" class="gmail_msg"><a id="m_-2281634970773617018user-content-introduction" class="m_-2281634970773617018anchor gmail_msg" href="https://github.com/hartbit/swift-evolution/tree/subclass-existentials/proposals#introduction" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u></a>Introduction</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">This proposal brings more expressive power to the type system by allowing Swift to represent existentials of classes and subclasses which conform to protocols.</p><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)" class="gmail_msg"><a id="m_-2281634970773617018user-content-motivation" class="m_-2281634970773617018anchor gmail_msg" href="https://github.com/hartbit/swift-evolution/tree/subclass-existentials/proposals#motivation" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u></a>Motivation</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">Currently, the only existentials which can be represented in Swift are conformances to a set of protocols, using the <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">&amp;</code>syntax:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-swift gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg"><span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> existential<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">Hashable</span> <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">CustomStringConvertible</span></pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">On the other hand, Objective-C is capable of expressing existentials of subclasses conforming to protocols with the following syntax:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-objc gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg">UIViewController&lt;UITableViewDataSource, UITableViewDelegate&gt;* existential;</pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">We propose to provide similar expressive power to Swift, which will also improve the bridging of those types from Objective-C.</p><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)" class="gmail_msg"><a id="m_-2281634970773617018user-content-proposed-solution" class="m_-2281634970773617018anchor gmail_msg" href="https://github.com/hartbit/swift-evolution/tree/subclass-existentials/proposals#proposed-solution" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u></a>Proposed solution</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">The proposal keeps the existing <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">&amp;</code> syntax but allows the first element, and only the first, to be of class type. The equivalent declaration to the above Objective-C declaration would look like this:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-swift gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg"><span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> existential<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> UIViewController <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> UITableViewDataSource <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> UITableViewDelegate</pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">As in Objective-C, this existential represents classes which have <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">UIViewController</code> in their parent inheritance hierarchy and which also conform to the <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">UITableViewDataSource</code> and <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">UITableViewDelegate</code> protocols.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">As only the first element in the existential composition syntax can be a class type, and by extending this rule to typealias expansions, we can make sure that we only need to read the first element to know if it contains a class requirement. As a consequence, here is a list of valid and invalid code and the reasons for them:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-swift gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg"><span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> a<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">Hashable</span> <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">CustomStringConvertible</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> VALID: This is still valid, as before</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"></span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> b<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> MyObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">Hashable</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> VALID: This is the new rule which allows an object type in first position</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"></span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> c<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">CustomStringConvertible</span> <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> MyObject
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> INVALID: MyObject is not allowed in second position. A fix-it should help transform it to:</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> let c: MyObject &amp; CustomStringConvertible</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"></span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">typealias</span> <span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">MyObjectStringConvertible</span> <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">=</span> MyObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">CustomStringConvertible</span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> d<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">Hashable</span> <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> MyObjectStringConvertible
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> INVALID: The typealias expansion means that the type of d expands to Hashable &amp; MyObject &amp; CustomStringConvertible, which has the class in the wrong position. A fix-it should help transform it to:</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> let d: MyObjectStringConvertible &amp; Hashable</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"></span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">typealias</span> <span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">MyObjectStringConvertible</span> <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">=</span> MyObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">CustomStringConvertible</span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> e<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> MyOtherObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> MyObjectStringConvertible
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> INVALID: The typealias expansion would allow an existential with two class requirements, which is invalid</span></pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">The following examples could technically be legal, but we believe we should keep them invalid to keep the rules simple:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-swift gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg"><span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> a<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> MyObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> MyObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">CustomStringConvertible</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> This is equivalent to MyObject &amp; CustomStringConvertible</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"></span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> b<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> MyObjectSubclass <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> MyObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">Hashable</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> This is equivalent to MyObjectSubclass &amp; Hashable</span>
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"></span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">typealias</span> <span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">MyObjectStringConvertible</span> <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">=</span> MyObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">CustomStringConvertible</span>
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> d<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> MyObject <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> MyObjectStringConvertible
<span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box;color:rgb(150,152,150)"><span class="m_-2281634970773617018pl-c gmail_msg" style="box-sizing:border-box">//</span> This is equivalent to MyObject &amp; CustomStringConvertible</span></pre></div><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)" class="gmail_msg"><a id="m_-2281634970773617018user-content-source-compatibility" class="m_-2281634970773617018anchor gmail_msg" href="https://github.com/hartbit/swift-evolution/tree/subclass-existentials/proposals#source-compatibility" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u></a>Source compatibility</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">This is a source breaking change. All types bridged from Objective-C which use the equivalent Objective-C feature import without the protocol conformances in Swift 3. This change would increase the existential&#39;s requirement and break on code which does not meet the new protocol requirements. For example, the following Objective-C code:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-objc gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg"><span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">@interface</span> <span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">MyViewController</span>
- (<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">void</span>)<span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">setup</span><span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">:</span>(nonnull UIViewController&lt;UITableViewDataSource,UITableViewDelegate&gt;*)<span class="m_-2281634970773617018pl-smi gmail_msg" style="box-sizing:border-box">tableViewController</span>;
<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">@end</span></pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">is imported into Swift 3 as:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-swift gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg"><span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">class</span> <span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">MyViewController</span> {
    <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">func</span> <span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">setup</span>(<span class="m_-2281634970773617018pl-smi gmail_msg" style="box-sizing:border-box"><span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">tableViewController</span></span>: UIViewController) {}
}</pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">which allows calling the function with an invalid parameter:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-swift gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg"><span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">let</span> myViewController<span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">:</span> <span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">MyViewController</span>()
myViewController.<span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">setup</span>(<span class="m_-2281634970773617018pl-c1 gmail_msg" style="box-sizing:border-box;color:rgb(0,134,179)">UIViewController</span>())</pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">The previous code would have worked as long as the Objective-C code did not call any method of <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">UITableViewDataSource</code> or <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">UITableViewDelegate</code>. But if this proposal is accepted and implemented as-is, the Objective-C code would now be imported as:</p><div class="m_-2281634970773617018highlight m_-2281634970773617018highlight-source-swift gmail_msg" style="box-sizing:border-box;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)"><pre style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal" class="gmail_msg"><span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">class</span> <span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">MyViewController</span> {
    <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">func</span> <span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">setup</span>(<span class="m_-2281634970773617018pl-smi gmail_msg" style="box-sizing:border-box"><span class="m_-2281634970773617018pl-en gmail_msg" style="box-sizing:border-box;color:rgb(121,93,163)">tableViewController</span></span>: UIViewController <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> UITableViewDataSource <span class="m_-2281634970773617018pl-k gmail_msg" style="box-sizing:border-box;color:rgb(167,29,93)">&amp;</span> UITableViewDelegate) {}
}</pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">That would then cause the Swift code to fail to compile with an error which states that <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">UIViewController</code> does not conform to the <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">UITableViewDataSource</code> and <code style="box-sizing:border-box;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:13.600000381469727px;padding:0.2em 0px;margin:0px;background-color:rgba(0,0,0,0.0392157);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px" class="gmail_msg">UITableViewDelegate</code> protocols.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">It is a source-breaking change, but should have a minimal impact for the following reasons:</p><ul style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg"><li style="box-sizing:border-box" class="gmail_msg">Not many Objective-C code used the existential syntax in practice.</li><li style="box-sizing:border-box;margin-top:0.25em" class="gmail_msg">There generated errors are a good thing because they point out potential crashes which would have gone un-noticed.</li></ul><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)" class="gmail_msg"><a id="m_-2281634970773617018user-content-alternatives-considered" class="m_-2281634970773617018anchor gmail_msg" href="https://github.com/hartbit/swift-evolution/tree/subclass-existentials/proposals#alternatives-considered" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u></a>Alternatives considered</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255)" class="gmail_msg">None.</p><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;background-color:rgb(255,255,255)" class="gmail_msg"><a id="m_-2281634970773617018user-content-acknowledgements" class="m_-2281634970773617018anchor gmail_msg" href="https://github.com/hartbit/swift-evolution/tree/subclass-existentials/proposals#acknowledgements" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none;float:left;padding-right:4px;line-height:1" target="_blank"><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u><u class="gmail_msg"></u></a>Acknowledgements</h2><div style="box-sizing:border-box;margin-top:0px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:16px;background-color:rgb(255,255,255);margin-bottom:0px!important" class="gmail_msg">Thanks to <a href="http://github.com/austinzheng" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none" class="gmail_msg" target="_blank">Austin Zheng</a> and <a href="https://github.com/anandabits" style="box-sizing:border-box;background-color:transparent;color:rgb(64,120,192);text-decoration:none" class="gmail_msg" target="_blank">Matthew Johnson</a> who brought a lot of attention to existentials in this mailing-list and from whom most of the ideas in the proposal come from.</div></div></div></div></blockquote></div><br class="gmail_msg"></div></div>_______________________________________________<br class="gmail_msg">
swift-evolution mailing list<br class="gmail_msg">
<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a><br class="gmail_msg">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="gmail_msg">
</blockquote></div>