r/ProgrammingLanguages • u/jamiiecb • Apr 10 '26
Borrow-checking surprises
https://www.scattered-thoughts.net/writing/borrow-checking-surprises
52
Upvotes
r/ProgrammingLanguages • u/jamiiecb • Apr 10 '26
View all comments
Show parent comment
3
u/oa74 Apr 11 '26
Re-reading my comment, I see where it could have lead to confusion. I'll try to clarify.
The point is that the invariant is indeed not violated by relaxing the rules, indicating a mismatch between the rule and the actual invariant we're trying to protect. The suggestion is that there may be some other ruleset out there that is intrinsically more surgical, whence it protects the invariant with fewer corner cases/surprises.