[swift-evolution] Proposal: typealias support protocol constraint
Adrian Kashivskyy
adrian.kashivskyy at me.com
Sun Dec 6 04:28:51 CST 2015
I believe this could be achieved using generic typealiases, proposed here: https://lists.swift.org/pipermail/swift-evolution/2015-December/000132.html
Pozdrawiam – Regards,
Adrian Kashivskyy
> Wiadomość napisana przez QQ Mail via swift-evolution <swift-evolution at swift.org> w dniu 06.12.2015, o godz. 08:17:
>
> If typealias support protocol constraint, I think we can reuse a lot of code, also more readable
>
> For Example:
>
> typealias PointCollection = protocol<T:CollectionType where T.Generator.Element == CGPoint>
>
> public extension PointCollection {
>
>
>
> }
>
>
>
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151206/15b6664b/attachment.html>
More information about the swift-evolution
mailing list