Re:Var and val in Java?
by deanCommie on Saturday March 26, 2016 @03:38PM
(#11367087)
I know C# and Java, but not Scala.
That is NOT at all clear for me. Why is: (new Foo).fiz = "fuz" // valid?
fiz is Final! Why would you be allowed to re-assign a final variable on an instance??
Instead of mixing "you can't override this in a subclass" and "you can't reassign this value" as Java did with final, it clearly separates these concerns: