I know this is probably specific to my use case on...
# language-proposals
j
I know this is probably specific to my use case only, but it would be mighty nice if I could instantiate an annotation class in common code. I’ve written an external reflection plugin and library, and have to use an awkward wrapper around annotation information because I can’t just instantiate the annotation class itself.
g
Doesn't look like language proposal, maybe #multiplatform is better place to ask. Could you also give little bit more information, what is "external reflection plugin"?
j
It's absolutely a language proposal. Right now, the language seems to specifically restrict instantiating instances of annotations.
As for what an "external reflection plugin" is, I invented it. It's a plugin that reads your code/the code of libraries and provides information about said code at runtime. It's working beautifully, but as I said, I have to do a bit of a hack for dealing with annotations.
g
Why do you need instance of annotation?
g
I see, I would rather discuss it with #serialization guys, maybe there is some workaround for such use cases