News for hackers. Stuff that matters.
Re:Var and val in Java? by merb on Saturday March 26, 2016 @03:55PM (#11367167)

    It is the mixture that is all wrong, and it is that mixture that you do not get in Scala or Kotlin.
Why don't we get that mixture in Scala? final is a valid keyword there, too.

    scala> final var x = "y"
    x: String = y
This works, even when it's not used. This would be just a matter of time in Java when nobody will use the `final var`.

There are no comments on this comment yet.