3 ms·
> I haven't fully learned Rust yet but from what I understand, the borrow checker only applies to mutable data This is not correct. The borrow checker applies
by steveklabnik 8y ago
> I haven't fully learned Rust yet but from what I understand, the borrow checker only applies to mutable data
This is not correct. The borrow checker applies to references, both mutable and immutable.
- drchickensalad 8y agoI think the intention was that if you have no mut refs, then you have no borrow checker problems.
- steveklabnik 8y agoThat’s not true. You still have things like dangling pointers being checked for.
- zackmorris 8y agoOk thanks for the followup, it was something I heard but hadn't tried in practice.
- steveklabnik 8y agoNo problem!