Aren't protocols generic already using associatedtype?

Also, what I really would like to have is generic associatedtype. Basically
to work the very same way as typealias.

Another nice to have feature might be having a possibility to add the same
generic protocol several times with different type associated. It might be
a bad C++ habit, though. Still I really miss it sometimes :)

What else is missing for me is possibility to declare a var or return type
by generic protocol. Have to create a specific class all the time which is
a big pain.

On Fri, 2 Dec 2016 at 18:36 Adrian Zubarev via swift-evolution <
swift-evolution@swift.org> wrote:

> Hi there, I wanted to ask if we need generic protocols in stage one or is
> it something for stage two? I literally bumped into a corner where I need
> them to write a nice and type safe API.
>
> --
> Adrian Zubarev
> Sent with Airmail
> _______________________________________________
> swift-evolution mailing list
> swift-evolution@swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to