something similar/same for kotlin native would be an absolute killer feature
e
elizarov
04/10/2017, 12:08 PM
What you plan to use it for?
z
zubzub
04/10/2017, 12:21 PM
compile time dependency injection comes to mind
m
miha-x64
04/10/2017, 12:22 PM
Everything similar to LoganSquare, Dagger, and so on...
z
zubzub
04/10/2017, 12:23 PM
I also use it to do bindings/protocol specific code generation based on an xml file. Because the xml is processed by compiler [annotation processor], you don't depend on any specific build tool [like gradle or maven or ... ]
zubzub
04/10/2017, 12:24 PM
also things like Google AutoValue are examples
zubzub
04/10/2017, 12:26 PM
I also used it to generate C bindings in Java, where you would declare in the Java code what you want/are interested in. The compiler would do the rest, so no extra tool required in the build chain.