[swift-evolution] [Pitch] Allow explicit specialization of generic functions

Patrick Smith pgwsmith at gmail.com
Wed May 25 20:50:14 CDT 2016

Sounds good to me. So it matches the order of the generic parameters?


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.


More information about the swift-evolution mailing list