3 ms·
Rust has affine types, and uses them extensively: types that own memory, as opposed to borrowing it, are generally affine. In principle you could implement a f
by comex 5y ago
Rust has affine types, and uses them extensively: types that own memory, as opposed to borrowing it, are generally affine.
In principle you could implement a form of borrow check with linear types (I don’t think affine is good enough), but the ergonomics would be horrible.
- verdagon 5y agoWhat would that look like, and why horrible?