I'm trying to factor out the interior mutability in my Rust code. It's a little more verbose, but surprisingly readable.
foo_old(&syntax);
foo_new(&syntax, &mut change_map);
Signatures are way more self-documenting with this approach.
It's amazing how important kinaesthetic learning is in programming.
There have been many concepts that I haven't fully grokked until I've actually coded it up myself. It forces you to consider all the details.