Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



What would that look like, and why horrible?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: