I forgot to mention, Kotlin also has some features that rely on compiler plugins, like serialization: https://kotlinlang.org/docs/serialization.html#formats, usually done via Gradle plugins.

This would normally be done via reflection, as Google's JSON library for Java, Gson, does. But by having a compiler plugin, they generate source code at "compile time" which basically looks at the type declaration and generates custom-made handlers that can parse/write JSON for them.

Reply via email to