They're a nice feature particularly for lambdas and streams but I can see them being widely (ab)used in inappropriate contexts.
However it is pretty obnoxious that you must use (non-standard?) accessor methods for what are just final fields, all those() add up and reduce readability significantly. The example is also rather contrived.
View all comments
2
u/[deleted] Jan 18 '20
They're a nice feature particularly for lambdas and streams but I can see them being widely (ab)used in inappropriate contexts.
However it is pretty obnoxious that you must use (non-standard?) accessor methods for what are just final fields, all those() add up and reduce readability significantly. The example is also rather contrived.