Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The Pain of Real Linear Types in Rust (2017) (faultlore.com)
1 point by xpe 3 months ago | hide | past | favorite | 1 comment


I like the way this article is organized; I learned a lot from it. I can't recall seeing this style of presentation before. To summarize and maybe get you interested:

    All the combinations of having-and-not-having these
    properties gives us 4 interesting kinds of type:

    1. can be used any number of times (no name - the default)
    2. can’t be used more than once (affine™)
    3. must be used at least once (relevant™ - this one is a decent name)
    4. must be used exactly once (linear™)
I don't often dig into type theory, but this article made it fun and interesting!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: