https://kotlinlang.org logo
#serialization
Title
# serialization
o

okarm

03/05/2024, 12:23 PM
Is there any difference between
1
and
2
in the following snippet? Maybe
1
will be problematic in native code? I seem to remember these reified inline functions threw at runtime in K/N, is that still a thing?
Copy code
object UUIDSerializer : KSerializer<UUID> {
    override val descriptor: SerialDescriptor = serialDescriptor<String>() // (1)
    
    override val descriptor: SerialDescriptor = String.serializer().descriptor // (2)
    
    ...
}