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
5
u/Uncaffeinated 1subml, polysubml, cubiml Apr 11 '26
I actually considered that in a language I was trying to develop, but I eventually decided that it isn't worth it because it only solves a few surface-level cases without addressing the underlying issue.
For example, it still breaks in the case of chained methods (
foo.bar(a()).baz(b()))