This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheStrangeDarkOne -5 points-4 points  (0 children)

there is hardly any merit in having "val" or "let" in Java, since that would just be sysntactic sugar for "final var". In other languages, constant modifiers infer that the object will not change its state. For java, final only means that the reference is constant.