2 ms·
I actually ran into a useful case for annotations in Java the other day. Compile time dependency injection (Micronaut framework). Not something I have a use f
by noir_lord 8y ago
I actually ran into a useful case for annotations in Java the other day.
Compile time dependency injection (Micronaut framework).
Not something I have a use for but it's clever.
https://micronaut.io/ https://micronaut.io/
- flukus 8y agoIt's not exactly a new thing though, it's always been possible in a variety of ways, from build steps to pre-processor macros. Annotations mostly just do what macros or code generators have always done.