Kotlin JS full reflection API


#1

Will Kotlin JS target get full reflection API support anytime soon?

I’m planning to write a tool that would currently use standalone Kotlin compiler (JVM) to create a program generating serialization code for JS target.

If JS target would support full reflection API it would render such (hacky) approach obsolete as I would be able to create object mapper directly in JS target code (well it wouldn’t generate code statically like in approach above, but performance isn’t an issue).

So is full reflection API support planned to be implemented in the near future (in few following months)?


#2

We are going to support full reflection in Kotlin/JS in the future but now we don’t have any ETA about it, so it will not be implemented in near future.

Regarding the serialization issue – we already work on the solution for both JVM and JS. You can find more information in this post and checkout and play with current implementation from here.


#3

Great to hear full reflection is coming to JS, please consider for a poll on desired features next time one is held.


#4

Waiting for this one.