Enum

/ˈiːnʌm/ noun

Definition

In programming, an enumeration data type consisting of a set of named constants representing distinct values.

Etymology

Abbreviated from 'enumeration,' from Latin enumerare meaning 'to count out' (e- 'out' + numerare 'to count'). The programming term emerged in the 1960s-70s as languages needed ways to define sets of related constants.

Kelly Says

Enums solve a fundamental problem in programming - how to represent concepts like days of the week or colors without using confusing numbers. They make code more readable by letting programmers write 'Color.RED' instead of remembering that red equals 1.

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.