3 ms·
There are libraries like Lombok that will generate the getters/setters for you via annotations. But tbh still feels very cludgy. Why not add some first class i
by adam_arthur 4y ago
There are libraries like Lombok that will generate the getters/setters for you via annotations. But tbh still feels very cludgy.
Why not add some first class immutable structure syntax to avoid need for getters/setters at all. Just so many better languages to choose from these days, Java is too far behind. And where they bridge the gap, they tend to do it in an awkward way.
- namero999 4y agoJava has records.
- adam_arthur 4y agoNews to me! Nice to see for sure, but doesn’t invalidate the overall point. Most of these bridge features are hobbled by BC concerns. E.g lambdas, generics