Has anyone seen anything about value type (swift `...
# swift-export
a
Has anyone seen anything about value type (swift
struct
) export on the roadmap? From what i've seen data class exports from Kotlin will still use reference types (swift
class
)
1
s
Hey. Swift structs are different from Kotlin
value
classes, and even more different from
data
classes. So automatic unconditional conversion would be incorrect. We did not dive deep into this problem yet, but likely we will export boxed
value
classes as Swift classes, and provide "yes I know what I'm doing" Kotlin annotation which forces export of the given type as struct.
🙌 1
j
Will the annotation work on data classes too?
s
Too early to discuss such details :)