On Wed, Oct 09, 2013 at 10:37:13AM -0700, Patrick Walton wrote: > Perhaps the right thing would be something like mutability > variables: `fn reflector<mutability M>(&M self) -> &M Reflector`. Of > course then integrating a pointer of unknown mutability introduces > borrow check issues similar to those we have with `&const`.
I don't think it would be as bad. In the case of &const, we had to fear others mutating the data under your feet. In the case of &M, the data is either immutable or only mutable via the pointer you have, so it should be less painful. But I don't claim to have thought deeply about this. Niko _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
