On Sat, Apr 11, 2009 at 5:51 AM, Andrus Adamchik <[email protected]>wrote:

> I like final.
>>
>
> Why? Is there any proof of better performance if you declare local
> variables as final? Otherwise this seems like cluttering the code.
>
> Andrus


I think there are some performance benefits, but they're minimal at best.
It's mostly a safety issue . . . to make sure a variable is assigned to
once.  It's the same reason I like const in C++.  I like Scala's approach to
variable assignment in this regard.

-- 
Kevin

Reply via email to