<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><br class=""></div></div><div><blockquote type="cite" class=""><div class="">On Jan 2, 2016, at 22:38, Douglas Gregor via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>*&nbsp;What is your evaluation of the proposal?<br class=""></div></div></div></div></div></blockquote><div>&nbsp;</div><div>Taking an example from the swift source to compare an alternative, `type`, we have</div><div><br class=""></div><div><div class=""><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><div style="font-family: Helvetica;" class=""><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class="">public&nbsp;protocol&nbsp;_CollectionWrapperType :&nbsp;_SequenceWrapperType&nbsp;{</font></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class="">&nbsp; &nbsp;&nbsp;associatedtype&nbsp;Base :&nbsp;CollectionType</font></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class="">&nbsp; &nbsp;&nbsp;</font><span style="color: rgb(92, 7, 0); font-size: small;" class="">associated</span><span style="color: rgb(92, 7, 0); font-size: small;" class="">type</span><font color="#5c0700" size="2" class="">&nbsp;Index :&nbsp;ForwardIndexType&nbsp;=&nbsp;Self.Base.Index</font></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class="">}</font></div><div class=""><font color="#5c0700" size="2" class=""><br class=""></font></div><div class="">vs</div></div></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class=""><br class=""></font></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class="">public&nbsp;protocol&nbsp;_CollectionWrapperType :&nbsp;_SequenceWrapperType&nbsp;{</font></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class="">&nbsp; &nbsp;&nbsp;type&nbsp;Base :&nbsp;CollectionType</font></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class="">&nbsp; &nbsp; type&nbsp;Index :&nbsp;ForwardIndexType&nbsp;=&nbsp;Self.Base.Index</font></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><font color="#5c0700" size="2" class="">}</font></div></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal;" class="">I think the version with `associatedtype` is a bit verbose, but that doesn’t seem like a big problem. &nbsp;It might read a little more clearly as well. &nbsp;I wouldn’t be unhappy with either of these alternatives, but `associatedtype` seems like a good choice.</div></div></div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>*&nbsp;Is the problem being addressed significant enough to warrant a change to&nbsp;Swift?<br class=""></div></div></div></div></div></blockquote>Yes. &nbsp;I think it `typealias` should be used only as the swift equivalent of a C typedef.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>*&nbsp;Does this proposal fit well with the feel and direction of Swift?<br class=""></div></div></div></div></div></blockquote>Yes, because we want to improve readability and understandability.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>*&nbsp;If you have you used other languages or libraries with a similar feature, how do&nbsp;you feel that this proposal compares to those?<br class=""></div></div></div></div></div></blockquote><div>I haven’t used another language with this feature.</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>*&nbsp;How much effort did you put into your review? A glance, a quick reading, or&nbsp;an in-depth study?<br class=""></div></div></div></div></div></blockquote><div>In depth study.</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><br class=""></div><div class="">More information about the Swift evolution process is available at</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span><a href="https://github.com/apple/swift-evolution/blob/master/process.md" class="">https://github.com/apple/swift-evolution/blob/master/process.md</a></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>Cheers,</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>Doug Gregor</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>Review Manager</div></div><div class=""><br class=""></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=5WjDmAeLSVykPFFAfTkUVtAbLP-2F8C4AbpoGjsWiSqfrH8cwQ9YYVI294-2BMeaYVkdTZQIC17UVJw4Fn5f77QUIU4wQebEbMg9rUd5YHsY9ll8fiaOdOT2mmxTrG0HxV9vRdVslSxdw6IZpUdVbSm7f7DPyf-2Bk9vMH6K1s4Ik5riNCVlmY8zdzdQQjnCI61pVVg6-2FhxcHVpAU8YHqxyRWKGL8xSdtnu0a9k0LFZfZdBBE-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
</div>
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></body></html>