Do we have type arguments export support now? For ...
# swift-export
d
Do we have type arguments export support now? For example
kotlin.Result<MyType>
becomes just
kotlin.Result
in Swift, so the type argument is lost
a
Generics are supported only for Flow and it's inheritors. For other usages of Generics they are typeerrased to the upper bound.
👍 1
j
Are they planned?
I remember there was a table about the roadmap, but I haven't it
a
We do have plans to provide support for generics. The problem is - generics systems between languages are really differs and we are not ready to commit to the extend of that support. But yes, we are working on that feature (no public timeline for that, obviously 🙂 )
♥️ 1
The initial direction of the design can be seen with the generics support for
Flow
. If there are concerns and/or problems with that - we would love to hear them, while we have a chance to change things.