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.
01/29/2019, 5:54 AM
But what is the purpose of doing that?
01/29/2019, 4:42 PM
Writing a custom serial descriptor for KotlinX Serialization
01/30/2019, 4:19 PM
Not sure if it could be done like that in Native at least
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.