static type system

Rules a compiler uses to check, before the program runs, that every value is used in a way its type allows.

In more detail

A type describes what a value can be, such as a string or an object with an email property. A static checker reads the source code and reports mismatches as errors without executing anything. Languages such as Java, Go and TypeScript are statically typed.

Example

TypeScript adds a static type system on top of JavaScript: compile-time proof for dynamic code

Related terms

Taught in

References