Hacker News new | ask | show | jobs
by josephcsible 2215 days ago
Rust is probably the most mainstream language that uses affine types. Once you call a function that takes ownership of a value (e.g., `drop`), the compiler won't let you use it anymore after the function call.