Hello, I hope everyone is doing good. I'm maintain...
# server
l
Hello, I hope everyone is doing good. I'm maintaining a Kotlin multiplatform library called Kotools Types and would like to make it compatible with Java in the future. The majority of types provided by this library are inline value classes, making their declarations incompatible with Java by definition. Do you have any tips for improving the Kotlin interoperability with Java? A solution could be to disable mangling by marking their declarations with the
JvmName
annotation. Another one could be to convert these inline value classes to regular ones, but we will lose their performance benefits... Also, when analyzing the binary code, I notice that using these type of classes narrows our understanding of it: the compiler replaces them by their underlying type. So I'm thinking about their tradeoff on performance and readability. Do you have any thoughts on this? Thanks!