News for hackers. Stuff that matters.
Re:Var and val in Java? by charleslmunger on Sunday March 27, 2016 @12:56AM (#11368957)
I like adding final to most of my local variables. I can declare a variable final, and no matter how complicated the control flow is that assigns its value, I know the compiler is enforcing that it's only set once. It also avoids accidental = rather than == bugs.

There are no comments on this comment yet.