Design Notes: Local Lifetimes for Kotlin(github.com)

1 分 | 作者 LelouBil 16小时前

1 条评论

  • LelouBil 16小时前
    I always thought that Rust lifetimes (and the affine types) are really useful to prevent logical bugs.

    Instances are usually related to one another, and with lifetimes the relation is explicit and checked by the compiler, so I am very happy to see something like this in Kotlin.