Mo :ferris: :tux: on Nostr: You can explain many aspects of the borrow checker in #Rust by using the analogy of ...
You can explain many aspects of the borrow checker in #Rust by using the analogy of having a rug (value) and persons (references) on it. No one is allowed to pull the rug under the feet of others 🚨
A lifetime tells you that a person will stay on his rug for at least that time.
#RustLang
Published at
2023-08-25 15:33:42Event JSON
{
"id": "202bcf452dd109d3169bcae98f00495738dbe461ee4cb130700d353e43d0fa4f",
"pubkey": "979383f8767c5d795fcad86f82dc7b38b384c1a473710c433014dc2c0fb0e359",
"created_at": 1692977622,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"proxy",
"https://fosstodon.org/users/mo8it/statuses/110950981471605800",
"activitypub"
]
],
"content": "You can explain many aspects of the borrow checker in #Rust by using the analogy of having a rug (value) and persons (references) on it. No one is allowed to pull the rug under the feet of others 🚨\n\nA lifetime tells you that a person will stay on his rug for at least that time.\n\n#RustLang",
"sig": "41c4360047224a8e1a62938cfad493086aef33075c9c4a64af24286766286ff1bf405410ea9588aa8117591dd68723596eb4cf76e031bce670f4e868c140d468"
}