Bottom type
From Wikipedia, the free encyclopedia
Categories: Wikipedia articles needing context | Wikipedia introduction cleanup | Type theory | Zero | Computer science stubs
The bottom type in type theory is a type that has no values. It is commonly abbreviated as bot, by the up tack symbol (⊥) or by its ASCII approximation _|_. The bottom type is also called the zero or empty type. It contrasts with the top type, which spans all possible values in a system, and a unit type, which has only one value. The bottom type is frequently used for the following purposes:
In programming languagesIn Haskell, the keyword undefined represents a computation for which the result has the bottom type. Attempting to evaluate the computation undefined at runtime aborts the program. In Common Lisp the symbol NIL, amongst its other uses, is also the name of a type that has no values. It is the complement of T which is the top type. The type named NIL is sometimes confused with the type named NULL, which has one value, namely the symbol NIL itself. See alsoExternal links
|


