Multiplicities

A tutorial page from the Idris 2 documentation on how variables carry usage quantities.

Author
The Idris Community
Published
Undated; copyright 2020-2023
Kind
Official language documentation, a tutorial page with code examples
Original
idris2.readthedocs.io/en/latest/tutorial/multiplicities.html
Subject
Programming languages and types

What it is

The Idris Community wrote this page for the Idris 2 documentation. It teaches the three quantities a variable can have. It then shows what each one allows in a program.

What it says

What evidence it gives

The page walks through small code examples. It shows hole types and error messages from the Idris 2 checker. It points to a separate paper for details.

Interests and limits

The authors maintain the language, so the page presents its design favorably. It is a tutorial, not a formal treatment. It lists open questions, such as whether linearity could guide memory management. The page is undated.