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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of programmers

programmers

Photo of linear types

linear types

Related news:

News photo

For programmers, even as AI adoption climbs, trust wanes

News photo

Programmers Aren’t So Humble Anymore—Maybe Because Nobody Codes in Perl

News photo

Operators, Not Users and Programmers