I'm closer to Martins opinion. In my opinion, Immutability really
improves readability of code, but longer declaration doesn't. That's why
some contemporary languages use shorter var/val for declarations.
Lev
On 03/28/2015 01:01 AM, Martin Buchholz wrote:
On Fri, Mar 27, 2015 at 2:57 PM, Roger Riggs <roger.ri...@oracle.com> wrote:
Hi,
@Martin: does the final have some functional reason to be present?
I see it just bulks up the source, reducing readability. If it is useful
to improve performance then fine.
If you use the idiom
final Type foo = this.foo;
and leave out the final,
there is a risk of a maintainer assigning to foo and introducing a bug.
Maybe I should stop, since no one seems to understand it?