[swift-evolution] [Pitch] Allow explicit specialization of generic functions
T.J. Usiyan
griotspeak at gmail.com
Wed May 25 22:39:46 CDT 2016
+1
On Wed, May 25, 2016 at 7:50 PM, Patrick Smith via swift-evolution <
swift-evolution at swift.org> wrote:
> Sounds good to me. So it matches the order of the generic parameters?
>
> e.g.
>
> func foo<T, U>(t: T, u: U) { … }
>
> let f1 = foo<Int, String>
>
> So if the function declaration was changed to swap T and U, it would
> break, same as say a generic struct type.
>
> Patrick
> _______________________________________________
> 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/20160525/db85285a/attachment.html>
More information about the swift-evolution
mailing list