On Wed, Jan 1, 2014 at 6:49 PM, Martin Olsson <[email protected]> wrote:
> Short version of my question:
>
> Why doesn't rust require "mut" param prefix at call sites? i.e. to avoid
> "non-const ref badness" that C++ has?
Well, to be somewhat extreme, in a function like
struct S { a: &mut int, b: &mut int }
fn f(s: &mut &mut S) ...
fn g(s: &mut &mut S) { f(s) }
what sort of "mut"s does g need?
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev