<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br><br>Sent from my iPad</div><div><br>On May 10, 2016, at 5:24 PM, Hooman Mehr &lt;<a href="mailto:hooman@mac.com">hooman@mac.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8"><br class=""><div><blockquote type="cite" class=""><div class="">On May 10, 2016, at 2:49 PM, Matthew Johnson via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><div class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><div class="">That said, I’m not sure I understand the concrete use-cases. &nbsp;When is this concept important? &nbsp;When is “Self” not good enough?</div></div></blockquote><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">The only case where there is new functionality is when this is used in a protocol requirement. &nbsp;I gave an example earlier today. &nbsp;</div></div></blockquote></div><br class=""><div class="">This functionality is the key: Ability of an open (non-final) class to conform to a protocol that lets it return an instance of the conforming type (itself). Self does not work for that and we can’t change its behavior (or can we?) So one solution seems to be Matt’s proposal. This functionality is important for me and an example use case is class clusters. For the client code it is sealed and acts just like a final class, but internally it may return a subclass that is an implementation detail. We should be able to do this.</div></div></blockquote><div><br></div>Agree and this is why I am willing to write the proposal for this. &nbsp;There was a discussion a few months ago about this problem and a few solutions were kicked around. &nbsp;The biggest problem with this approach at the time was lack of a good name, which I believe we now have in Type.<div><br></div><div>I'm going to let the discussion continue for a day or two and will write a proposal if no significant counter arguments arise.</div><div><br></div><div>-Matthew<br><div><br><blockquote type="cite"><div><div class=""><br class=""></div><div class="">Hooman</div></div></blockquote></div></div></body></html>