Declarations should be immutable by default. To make them mutable, use the mut keyword as demonstrated below. This should be statically checked and enforced by the compiler.
let x: u8 = 19;
// Errors:
//x = 90;
//decrement(x);
let mut y: u8 = 17;
// Works:
y = 90;
decrement(y);
Started in #63.
Declarations should be immutable by default. To make them mutable, use the
mutkeyword as demonstrated below. This should be statically checked and enforced by the compiler.Started in #63.