# Type System

> Rules that sort values into kinds. They check how each kind is used.

**Field:** Software Development  
**Category:** Programming Paradigms  
**Also known as:** Type Checking, Type Checker

## Think of it like

Think of it like shaped holes in a toy box. A square block will not go in the round hole.

## Definition

A type system is the set of rules a language uses to decide what kind each value is. It says what you can do with each kind: you can add two numbers, but not a number and a list. Some languages check the rules before the program runs. Others check them only while it runs. A strict type system catches many mistakes early, before a user ever sees them.

## Example

Lucy's code tries to add 5 to a list of names. Her type checker stops it before the program even starts.

## Why it matters

Many bugs are a value of the wrong kind in the wrong place. A type system finds them for you.

## Common mistake

Thinking types only matter in languages that make you write them. Python has types too; it just checks them later.

## Three principles

- **Kinds of value.** Number, text, list and more.
- **Rules for each.** What you may do with it.
- **Checked early or late.** Before running, or while running.

## Related terms

- [Data Type](https://learn.benibix.com/term/development/data-type)
- [Statically Typed Language](https://learn.benibix.com/term/development/statically-typed-language)
- [Dynamically Typed Language](https://learn.benibix.com/term/development/dynamically-typed-language)
- [Type Inference](https://learn.benibix.com/term/development/type-inference)
- [Union Type](https://learn.benibix.com/term/development/union-type)

---

Source: https://learn.benibix.com/term/development/type-system
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
