<div dir="ltr">FWIW they're marked as 'unlikely' here: <a href="https://github.com/apple/swift/blob/master/docs/GenericsManifesto.md#generic-protocols">https://github.com/apple/swift/blob/master/docs/GenericsManifesto.md#generic-protocols</a><div><br></div><div>It would probably be useful to have counterarguments against the points raised in that document if you want to prepare a proposal.<div><br></div><div>Austin</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 2:32 PM, Jordan Rose via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Associated types aren't generic parameters; the whole point is that they're requirements, just like the other declarations in a protocol.<br>
<br>
You might be trying to invent generic protocols instead, which (IIRC) aren't inherently a bad thing. But I think this needs a lot more fleshing out before it can really be discussed—it's hard to know how you can and can't use these things, and how they might be implemented.<br>
<br>
Best,<br>
Jordan<br>
<div><div class="h5"><br>
<br>
> On Jun 8, 2016, at 12:07, Антон Жилин via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
><br>
> ==Motivation==<br>
><br>
> protocol From {<br>
> associatedtype FromType<br>
> init(_ value: FromType)<br>
> }<br>
><br>
> The problem is, one type cannot implement multiple From "conversions".<br>
><br>
> ==Proposed solution==<br>
><br>
> Allow specifying all associated types using generic syntax.<br>
><br>
> extension Int : From<Float> { }<br>
> extension Int : From<Double> { }<br>
><br>
> This is only allowed in conformance declarations.<br>
><br>
> ==Future directions==<br>
><br>
> We can replace all *Convertible protocols with From and Into, which will be defined similarly to Rust.<br>
><br>
> - Anton<br>
</div></div>> _______________________________________________<br>
> swift-evolution mailing list<br>
> <a href="mailto:swift-evolution@swift.org">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>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">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>
</blockquote></div><br></div>