3 ms·
I always found the C syntax to define a chain of pointers with various permutations of constness pretty confusing. Rust is much better in that regard, but if I
by weinzierl 2y ago
I always found the C syntax to define a chain of pointers with various permutations of constness pretty confusing.
Rust is much better in that regard, but if I am totally honest it isn't completely logical to me in Rust either.
Especially I find it confusing that the term mutable reference is sometimes used to mean a reference to a mutable place.
- Rusky 2y ago> Especially I find it confusing that the term mutable reference is sometimes used to mean a reference to a mutable place. It always means this- unlike C, the mutability of a place is not part of its type, so if you're talking about the reference itself being mutable that will be tracked somewhere else.