[swift-evolution] [Pitch] Allow explicit specialization of generic functions
David Hart
david at hartbit.com
Thu May 26 01:38:36 CDT 2016
Yes, it matches the order of the generic parameters. I'll mention it explicitly in the next version.
> On 26 May 2016, at 03:50, Patrick Smith <pgwsmith at gmail.com> 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
More information about the swift-evolution
mailing list