On 02/04/2013 8:53 AM, hudo wrote:
let x = get(x)    / / immutable binding
mut x = get(x)  / / mutable binding, instead than modified
I would have a clearer semantics and syntax of the simplified :)

There's an issue on file for this:

https://github.com/mozilla/rust/issues/2643

though it started with var vs. let, it drifted into let vs. mut. I think at this stage we're unlikely to do this; it's late in the language design and the current syntax is symmetric with the other locations 'mut' can occur: after 'static' (for globals), or after & or @ for mutable referents of pointers. In all such places, you make something immutable by omitting the word 'mut', not changing it to something else.

-Graydon

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to