388
borrow checker? (thelemmy.club)
you are viewing a single comment's thread
view the rest of the comments
[-] jjj@lemmy.blahaj.zone 2 points 1 day ago

these rules are affected by whether you can or can't edit the referenced data

Yes, but not quite. They are affected by whether something else is allowed to look at the referenced data at that time. You can mutate data behind a shared reference with interior mutability: https://doc.rust-lang.org/reference/interior-mutability.html

this post was submitted on 06 Jul 2026
388 points (98.7% liked)

Programmer Humor

32192 readers
1322 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS