enum

Compare

Why “enum” is being discussed

The most recent Hacker News stories and comments contributing to this topic's mentions.

Interest

Proportion of Hacker News items mentioning "enum" over time.

Mentions

Total number of Hacker News items mentioning "enum" over time.

In computer programming, an enumerated type is a data type consisting of a set of named values called elements, members, enumeral, or enumerators of the type. The enumerator names are usually identifiers that behave as constants in the language. An enumerated type can be seen as a degenerate tagged union of unit type. A variable that has been declared as having an enumerated type can be assigned any of the enumerators as a value. In other words, an enumerated type defines a set of discrete, mutually exclusive constants that are not generally written to a concrete representation in the computer's memory; compilers and interpreters can represent them arbitrarily without specification from the programmer. Read more on Wikipedia

© 2026 HN Trends. Built by Ben Evans. HN Trends is not affiliated with Hacker News or Y Combinator.