pornel
2 days ago
True, you need to know what is and isn't possible in the borrow checking model to avoid learning it the hard way after writing the code.
There are some gotchas that you need to learn (e.g. self-referential structs won't work, or & returned from a &mut method won't be shareable).
But besides a few exceptions, it's mostly shared XOR mutable data in the shape of a tree. It's possible to build intuition around it.