On 25/07/12 13:44, Niko Matsakis wrote:

> Sound good?

Yes! I think modes are unintuitive and awkward, and that removing them is a good thing.

To clarify how the migration will work, how will code like this look during a. the migration phase and b. after the migration?

fn shizzle(x: {mut a: int}) {
    x.a = 2;
}

fn main() {
    let x = {mut a: 1};
    shizzle(x);
    io::println(#fmt("x.a = %d", x.a)); // prints "x.a = 2"
}

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

Reply via email to