4 ms·
Why should "get_first_name_mut" not be simplified to "first_name"?
by WhitneyLand 10y ago
Why should "get_first_name_mut" not be simplified to "first_name"?
- sidlls 10y agoWhy should it be?
- db48x 10y agoget_foo and get_foo_mut are a convention used by the rust standard library.
- ycmbntrthrwaway 10y agoMostly because Rust does not support overloading and you may want both mut and non-mut versions.