https://kotlinlang.org logo
#announcements
Title
# announcements
p

Peter Kucera

04/23/2020, 11:25 AM
Hi everyone. I have a question about Kotlin Unsigned types, which are still marked as experimental language feature. Do you think they are feasible for use in a multiplatform Android/iOS project using shared module written Kotlin Native? Thanks.
d

David Eriksson

04/23/2020, 11:37 AM
Implementation of unsigned types heavily depends on inline classes feature. Namely, each unsigned class is actually an inline class, which uses the signed counterpart value as a storage.
Is this good or bad for your use case? :)
p

Peter Kucera

04/23/2020, 1:02 PM
Well, I have used unsigned types until now on Kotlin/JVM and now I wanted to ask if porting same code to Kotlin/Native and compiling it for iOS target will work well. I mean - I can test it myself if it will work but I was curious about some hidden implications of usage Unsigned types on iOS.
2 Views