Skip to content

Instantly share code, notes, and snippets.

@atrick
atrick / 2026-05-lifedep-compat.md
Last active June 10, 2026 22:39
~Escapable lifetime dependency compatibility with lifetime types

~Escapable (~E) lifetime dependency compatibility with lifetime types

Today, ~E lifetimes are built on on a value dependency model. We want to migrate to a type-restricted model. A type-restricted model is essentially a generic type system for lifetimes, which I'll call "lifetime types".

Dependencies

@_lifetime(source)
func operation(source: Source) -> Dest