Re:The Modern Java Platform – 2021 Edition
by a_imho on Wednesday March 17, 2021 @06:59AM
(#26489281)
I simply don't understand how people favor a stringly typed custom DSL in a reasonably typed language like java. Why is it better to write Spring annotations instead of actual java code? There is literally no upside.
[ Parent
| on HN ]
Annotations are fairly typesafe. The parts that aren't safe are parts that Java offers no way to do at compile time (e.g. "are all the arguments to this constructor of types that are in this set of existing services?")