I find it mildly expressive to be able to say:
public static final String KEYWORD_CONSTANT = "foobledy foo";
My reader will know that this is a constant that is safe to use as such.
Other than this and the syntactic captured variable case, I don't use final.
On Sat, Feb 13, 2010 at 1:05 PM, Benson Margulies <[email protected]>wrote:
> That doesn't, sadly, prevent
>
> x[2] = 1;
>
> So, to me, final is too weak to be useful. I put them in code when
> required due to the rules about anonymous functions capturing locals,
> but never otherwise.
>
--
Ted Dunning, CTO
DeepDyve