What is Nostr?
zach
npub10fu…8vp4
2024-09-06 23:45:21

zach on Nostr: Asked Claud about Rust and borrow checker (in an ELI5 fashion because that is my ...

Asked Claud about Rust and borrow checker (in an ELI5 fashion because that is my brain on Rust).

Rust heads, how does this sound? Is it right?

"ELI5 version of the borrow checker:
Imagine you have a toy that you sometimes play with and sometimes let your friends borrow. The borrow checker is like a strict parent who makes sure that when you lend your toy to a friend, you can't play with it yourself until your friend gives it back. Also, if you're playing with the toy, none of your friends can borrow it until you're done. This way, there's never any fighting over who gets to use the toy."

#asknostr
Author Public Key
npub10fu0hlkx3s4n4dsgfu0cpqephga4afr4qtzpz9vsyqf7vj88v2yqdp8vp4