4 ms·
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 in
by a_imho 6y ago
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.
- dmux 6y agoOne possibility is that the code is just Java and the end of the day. You could run it independent of Spring processing the annotations.
- lmm 6y agoAnnotations 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?")