Enum
Noun · Development
Definitions
An enumerated type — a data type consisting of a fixed set of named constants. In Rust and Swift, enums can carry associated data (algebraic enums), making them far more powerful than C-style integer enums.
In plain English: A type that can only be one of a specific set of values, like a dropdown menu in code — 'Red', 'Green', or 'Blue', nothing else allowed.
Example: "We replaced the string status field with an enum — no more typos causing 'pendding' to slip through."