3 ms·
Sorry, I typed the wrong word. I've updated the parent to be less confusing. s/compile/optimize/ For reference the first line used to be: "Well the compiler kn
by kevincox 9y ago
Sorry, I typed the wrong word. I've updated the parent to be less confusing. s/compile/optimize/
For reference the first line used to be: "Well the compiler knows the signature of the function you pass it to so it should be able to compile it anyways."
> &T vs &mut T is very significant in Rust
Yes, especially for function signatures it is critical, however the ancestor was talking about using & to take a reference. When using & to take a reference I don't think &mut needs to be required. The compiler could probably figure it out.