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
I dunno. If you're protecting some invariant by enforcing some rules, and ergonomics demand so many exceptions to those rules, and such exceptions do not violate the invariant... perhaps that is an indication that the rule hasn't done all that great a job at protecting the invariant.