Is there a thing like ownership katas?

I think this would be a good idea. This is a huge problem and both books kinda gloss over this topic.

1 Like

What are katas?

Something like this: https://en.wikipedia.org/wiki/Kata_(programming)

A series of brief exercises that force you to solve a borrowing problem to make a piece of code work.

There's a thing called rustlings.

There is also a famous set of four Rust koans, which for someone used to koans and katas can provide insight into the philosophical underpinnings or Rust.

3 Likes