Idea: Properties

That seems like the proposal on the table.

(This is off-topic.) While I understand the idea of thinking about &mut as "exclusive reference" rather than "mutable reference", that seems like making the programmer think like the compiler. The net effect is that you can only mutate if you have an exclusive reference, and if you have a shared reference you cannot mutate. And non-reference use of mut, such as let mut x = ..., has nothing to do with shared versus exclusive.

3 Likes