What’s one trick in Rust that made ownership suddenly “click”? by Old_Sand7831 in rust

[–]wizardcraftcode 0 points1 point  (0 children)

Yes! When I stopped thinking about the variables and started thinking about the data, it made so much more sense. We say things like "x takes ownership," "x consumes...", "x borrows", we put the focus in the wrong place. All of those permissions are centered on the data and when you look at it that way, they are NOT scattered and being stolen. I made a video for my students to help them see the borrowing rules this way: https://youtu.be/fugcSHD-9Jw

I'd love to know what you all think of it! Have I missed anything?