logoalt Hacker News

vimwizardyesterday at 4:48 PM3 repliesview on HN

Rust ownership model ("stacked borrows" I believe it's called) is basically this


Replies

kibwenyesterday at 6:49 PM

Single-ownership ("affine types") is a separate concept from a borrow checker. Your language doesn't need a borrow checker (or references at all) to benefit from single-ownership, though it may make some patterns more convenient or efficient.

show 1 reply
NooneAtAll3yesterday at 5:36 PM

I think it's the other way around - he's projecting rust as what he wants

LoganDarkyesterday at 5:31 PM

Actually there's tree borrows now. https://www.ralfj.de/blog/2023/06/02/tree-borrows.html