Kotlin Meta and CT programming vs D
Renato Athaydes
renato at athaydes.com
Mon Dec 23 12:18:28 UTC 2024
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.
More information about the Digitalmars-d-learn
mailing list