this post was submitted on 02 Jul 2026
-27 points (37.1% liked)
Programmer Humor
32158 readers
749 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Rust is often treated like it has a split between mutable and immutable state, but it's really a split between unique and shared state. Shared state can be mutated if certain invariants are held, which types that provide "interior mutability" as its called enforce.
https://doc.rust-lang.org/reference/interior-mutability.html