Hacker News new | ask | show | jobs
by deanCommie 3742 days ago
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??

1 comments

Final does not mean immutable, but non-overridable through inheritance. The val keyword is what makes things immutable.