IT lexicon › Programming › Enum

Enum Enumeration

Programming På svenska → Updated: 2026-05-24

A type that can only hold one of a fixed set of named values: Status = OPEN | CLOSED | PENDING.

Better than "magic strings" or numbers: the compiler can check that you cover every case. Rust and TypeScript enums are particularly powerful (they can carry extra data). In databases: ENUM columns or a separate table.

← Back to the lexicon