RFR: 8071571: Move substring of same string to slow path
Lev Priima
lev.priima at oracle.com
Fri Mar 27 22:30:56 UTC 2015
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.Riggs at 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?
More information about the core-libs-dev
mailing list