Chapter 4

Slots & Values

This is the chapter that changes how you think, not just what you type. fix and mut replace the let/const/var mess every language disagrees on, and underneath both, no value ever mutates in place.

If you’ve ever chased a bug where changing “a copy” changed the original too, this is where that bug class stops existing.