[swift-dev] Generic typealiases

Jacob Bandes-Storch jtbandes at gmail.com
Tue Mar 8 01:45:30 CST 2016


Awesome!

On Mon, Mar 7, 2016 at 11:09 PM, Chris Lattner via swift-dev <
swift-dev at swift.org> wrote:

> Hi All,
>
> I just landed an implementation of generic typealiases, e.g. things like:
>
>     typealias StringDictionary<T> = Dictionary<String, T>
>     typealias IntFunction<T> = (T) -> Int
>     typealias MatchingTriple<T> = (T, T, T)
>     typealias BackwardTriple<T1,T2,T3> = (T3, T2, T1)
>
> etc now work.
>
> I have tested various scenarios with them, but I wouldn’t be surprised if
> there are corner cases that aren’t working yet.  Please try kicking them
> around and let me know if you run into any problems, thanks!
>
> -Chris
>
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160307/116aca3f/attachment.html>


More information about the swift-dev mailing list