4 ms·
I see that the poor implementation of generics is an issue, but what's so bad about annotations?
by AlisdairO 17y ago
I see that the poor implementation of generics is an issue, but what's so bad about annotations?
- Tichy 17y agoMy main issue is that they add more complexity to the language, making it harder to learn and to understand. They also encourage even more verbosity in an already verbose language. Furthermore, the uses I have seen all seemed a bit borderline - they used to say that configuration should stay out of the code, but now it sneaked in again.
- nradov 17y agoHow else would you propose to make meta-information about code available at run time? Before annotations we had to put that information in separate configuration files. That ended up being more complex, and harder to learn and understand.
- Tichy 17y agoI only know it in the context of Hibernate, and there are ORM frameworks in languages that don't have annotations. The separate config files had something going for them, because it keeps the concerns distinct.