<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br><br>Sent from my iPhone</div><div><br>On Dec 19, 2015, at 2:17 PM, Michael Henson via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><blockquote class="gmail_quote" style="font-size:12.8px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">1) Do you agree about using “associatedtype”?<br>2) If not, which keyword would you prefer to use? why? (you can introduce a new one)</blockquote><div style="font-size:12.8px"><br>There is another alternative. Rather than trying to come up with another brand-new keyword, we can re-use one that has an existing and appropriate meaning: required.<br><br>Example:<br><br>protocol ExampleProtocol {</div><div style="font-size:12.8px"> required typealias Element</div><div style="font-size:12.8px"> typealias MethodSignature = (arg: Element) -> Bool<br><br></div><div style="font-size:12.8px"> ... etc</div><div style="font-size:12.8px">}<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">It's a little more verbose at the point of use but the declarations are relatively uncommon and this usage is clearly separate from regular typealias declarations.<br><br></div></div></div></blockquote><div><br></div><div>I don't link this as it's not entirely accurate. Associated types are somewhat different than typealiases and are often inferred, not declared in the conforming types.</div><br><blockquote type="cite"><div><div dir="ltr"><div style="font-size:12.8px">Mike</div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=eLFMrKDT8iBxZ-2Fbnk-2BZqvSchNN-2FvYXdceA0T7VxwkAdiDAx-2B3AftlmTinqYPBRFY2Ac-2FH1Emk4cGnYArfnukkyyRgvigySyHKP49r7-2B0LWy-2F34WJOYKUogZiYjRbe60LYJblukeZf8gktzcyyw8Yn-2B-2BSQwdXq0b76vGS4EOjvBqtX-2BSOrk63ycVS08edKR2vKtroK-2FqvI9qfEp-2FjuaSpObzgVdJ4E8p8gI3JQD8GFr0-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;">
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>