https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

josephivie

01/28/2019, 11:40 PM
Does anyone know of a multi-platform way to create an instance of an annotation at runtime? As far as I can tell, there is none.
o

olonho

01/29/2019, 5:54 AM
But what is the purpose of doing that?
j

joseph_ivie

01/29/2019, 4:42 PM
Writing a custom serial descriptor for KotlinX Serialization
o

olonho

01/30/2019, 4:19 PM
Not sure if it could be done like that in Native at least
j

josephivie

01/30/2019, 10:22 PM
I think it would be good to either allow instantiating or extending an annotation or changing KotlinX serialization’s interface. I’m actually for the former, as Java already supports it and using the annotation classes directly in the API makes for easier reading of annotations.