Uniqueness type
From Wikipedia, the free encyclopedia
In computing, a unique type guarantees that an object is used in a single-threaded way, with at most a single reference to it. If a value has a unique type it can be modified in place improving the efficiency of functional languages while maintaining referential transparency. Unique types can also be used to integrate functional and imperative programming languages.
Uniqueness types are implemented in the functional programming languages Clean and Mercury.
[edit] See also
- Linear type
- Linear logic