r/ProgrammingLanguages • • Apr 10 '26

Borrow-checking surprises

https://www.scattered-thoughts.net/writing/borrow-checking-surprises
52 Upvotes

27 comments sorted by

View all comments

Show parent comment

2

u/oa74 Apr 12 '26

Yes, we're approaching Rice's theorem, which invariably comes up when discussing limitations of Rust. We can be sure there is a hard limit, but the question is: where is it? How close have we gotten? It seems like it's a forgone conclusion that Rust is the best we can do... I'm just not convinced of that. I'm also not convinced Polonius gets us that much more. I think that to make more than a marginal improvement, we would need a substantially different type system, and I can totally understand the resistance to that prospect.

1

u/iBPsThrowingObject Apr 12 '26

That's definitely true. Rust is pretty much the first language to actually do borrow checking, there's bound to be the next one that does it better. Besides Rust has a bunch of small warts outside of borrowck as well, that everyone agrees were mistakes, but now can't be rectified due to backwards compatibility.