{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreigt664zz6ft5uxjpu5vzbvr625cwanvkg47vcm2x4myf5yycrfym4",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mljcwmyinfw2"
},
"path": "/t/interiorassign-trait-a-b/24291#post_5",
"publishedAt": "2026-05-10T17:27:11.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "It's pretty much baked into the foundational philosophy of the language, as evidenced by the fact that regular mutability has syntax support (and has had it since before 1.0) where interior mutability does not.\n\nThat syntactic divide was no accident. It follows from a recognition that interior mutability occupies a point on a spectrum between \"useful\" (eg perf optimization) and \"necessary\" (in the occasional case where regular CREW semantics are too restrictive).",
"title": "InteriorAssign trait { a := b }"
}