Design Notes: Local Lifetimes for Kotlin

(github.com)

1 points | by LelouBil 12 hours ago ago

1 comments

  • LelouBil 12 hours ago ago

    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.