Share to:

 

Typing environment

In type theory, a typing environment (or typing context) represents the association between variable names and data types.

More formally, an environment is a set or ordered list of pairs , usually written as , where is a variable and its type.

The judgement

is read as " has type in context ".[1]

For each function body type checks:

Typing Rules Example:

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

See also

References

  1. ^ "Simply Typed λ-calculus" (PDF).

Information related to Typing environment

Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya