Skip to content

Typing in programming

How a programming language handles kinds of values and suitable operations.

Software Development

What is typing in programming?

Typing governs types of values and the operations suitable for them. Static type checking can detect incompatibilities before execution; dynamic typing handles types at runtime. Type information may be explicit or inferred by a tool. A typed language is not automatically free of business-logic errors.

In a fictional portal, quantity is intended to be handled as a number. An appropriately used static checker can flag a text assignment. A number description alone does not establish whether a quantity is positive, integral or valid for the selected unit. Data from an external interface is not automatically validated at runtime by a TypeScript type annotation either. These inputs and business rules require their own checks.

Sources

Articles on this topic

Software Development with ASES

Custom software, web and mobile apps