Should Swift have the ability to specify the type in a generic function?

Currently Swift doesnt allow for get<Type>()
This impacts my workflow because I want to do something like get<SubType>() as ParentType.
I dont want to do (get() as SubType) as ParentType.

I see there was a request back in 2016 Proposal: Allow explicit type parameter specification in generic function call - #6 by Ramiro_Feria_Puron

This was most recently discussed here: [Pitch] Lifting restriction on explicit specialization in function calls

2 Likes