Get the latest tech news
Linear Types for Programmers (2023)
Introduction § Linear types are an application to type theory of the discipline of linear logic, first described by Jean-Yves Girard (Girard, 1987). Since its inception it has led to many fruitful discoveries in computer science.
Any misordering of these operations, for example writing the request body before the headers, constitutes an error on the part of the client programmer. Rust again encodes this in its unique-reference types (spelt mut, for historical reasons) where they are used to restrict the scope of mutation of state and prevent data races. The Clean programming language uses uniqueness types to control side effects while maintaining a purely functional semantics.
Or read this on Hacker News