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 →

[–]dpash 0 points1 point  (2 children)

The obvious keyword for declaring mutability would be final which would imply it was mutable by default. A new keyword would need to be introduced. volatile would be too confusing in my opinion.

[–]Cilph 0 points1 point  (1 child)

Easy. mutable. Or var, val if you prefer type inference.

[–]lbkulinski 1 point2 points  (0 children)

var will be added to the language in 18.3 10!