Handle "value classes" interoperability #47
ValentinDenis
started this conversation in
Ideas
Replies: 1 comment
-
Hi! I think that we have inline classes somewhere in our backlog. However, we don't have a clear idea of what that would look like. As for your use case, I think the easiest solution is to use a different result implementation based on a sealed class instead of a value class. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
We would like to expose our use cases made in our KMP library to our swift app.
Right now we have to create special
data class
return types so swift can handle it.Here is an example:
It's used in swift with :
What would be great is if
Result
type could be interoperable so that we could get rid of ourdata class
and directly use an enum on theResult
on the swift side, as it is possible withsealed class
with SKIE and the swiftResult
type.Do you know if something like this can be done ?
What is your recommendation on handling
Result
type ?Thank you !
Beta Was this translation helpful? Give feedback.
All reactions