rust-in-ten-slides icon indicating copy to clipboard operation
rust-in-ten-slides copied to clipboard

Explain the ownership and borrowing using a real-world example

Open k0pernicus opened this issue 7 years ago • 4 comments

For Rust concepts, maybe we can just show the three most important one via a simple real-world example: the DVD seller/renter.

For example, if you buy a DVD, the DVD does not belongs anymore to the seller - it belongs to you. Otherwise, if you rent a DVD, the DVD still belongs to the company - you have borrow the DVD, and you have a limited period to watch it. This is a simple example, and maybe we can complexify the subject to include immutability, and concurrent renting for example...

What do you think about this idea?

k0pernicus avatar Apr 04 '18 16:04 k0pernicus

I think that an overview of borrowing and ownership would make a great presentation, and then a full one on each topic as well, for sure!

steveklabnik avatar Apr 04 '18 16:04 steveklabnik

Cool - I will work on it next week

k0pernicus avatar Apr 07 '18 10:04 k0pernicus

Hi @steveklabnik,

I was looking back to my opened issues and saw this one...

Are you still interested for a contribution in this project?

k0pernicus avatar Jan 09 '21 16:01 k0pernicus

Hey @k0pernicus , I should actually archive this project, as I'm not intending on working on it further. Thanks though!

steveklabnik avatar Jan 11 '21 19:01 steveklabnik