3 ms·
I have recently seen "exclusive" for &mut, instead of "unique" here. The "value" and "variable" naming is unambiguous though. "Variable" might be problematic f
by the_gipsy 4y ago
I have recently seen "exclusive" for &mut, instead of "unique" here.
The "value" and "variable" naming is unambiguous though. "Variable" might be problematic for someone that conflates the concepts of reference and value - but that's an issue that should be solved far earlier than ownership.
- hgomersall 4y agoExclusive is an interesting description in this context because it describes the semantics of the mut as regards the borrow checker. "mut" in Rust means much more than just "mutable".