Type variable

In type theory and programming languages, a type variable is a mathematical variable ranging over types. Even in programming languages that allow mutable variables, a type variable remains an abstraction, in the sense that it does not correspond to some memory locations. # let id x = x;;val id : 'a -> 'a = <fun> In mathematical notation, the type of the function id is , where is a type variable.

Comment
enIn type theory and programming languages, a type variable is a mathematical variable ranging over types. Even in programming languages that allow mutable variables, a type variable remains an abstraction, in the sense that it does not correspond to some memory locations. # let id x = x;;val id : 'a -> 'a = <fun> In mathematical notation, the type of the function id is , where is a type variable.
Has abstract
enIn type theory and programming languages, a type variable is a mathematical variable ranging over types. Even in programming languages that allow mutable variables, a type variable remains an abstraction, in the sense that it does not correspond to some memory locations. Programming languages that support parametric polymorphism make use of universally quantified type variables. Languages that support existential types make use of existentially quantified type variables. For example, the following OCaml code defines a polymorphic identity function that has a universally quantified type, which is printed by the interpreter on the second line: # let id x = x;;val id : 'a -> 'a = <fun> In mathematical notation, the type of the function id is , where is a type variable.
Is primary topic of
Type variable
Label
enType variable
Link from a Wikipage to another Wikipage
Category:Dependently typed programming
Category:Functional programming
Category:Type theory
Data types
Existentially quantified
Existential type
Identity function
OCaml
Parametric polymorphism
Programming language
System F
Type theory
Universally quantified
Variable (mathematics)
Variable (programming)
SameAs
4ooPt
m.07kbmm2
Q636210
Zmienna typowa
Змінна типу
Переменная типа
Subject
Category:Dependently typed programming
Category:Functional programming
Category:Type theory
WasDerivedFrom
Type variable?oldid=990958811&ns=0
WikiPageLength
1158
Wikipage page ID
279701
Wikipage revision ID
990958811
WikiPageUsesTemplate
Template:Type-theory-stub