Typing environment

From Infogalactic: the planetary knowledge core
(Redirected from Environment (type theory))
Jump to: navigation, search

In type theory a typing environment (or variable assignment) represents the association between variables names and data types. More formally an environment \Gamma is a set or ordered list of pairs \langle x,\tau \rangle, usually written as x:\tau, where x is a variable and \tau its type.

In statically typed programming languages these environments are used and maintained by type rules to type check a given program or expression.

See also


<templatestyles src="Asbox/styles.css"></templatestyles>