See also: eñum



enum colours { red, green, blue, white, black }


Abbreviation of enumeration, used as a keyword in the C programming language and its descendants.



enum (plural enums)

  1. (programming) An enumeration (set of named constants).
    • 2007, Robert Pickering, Foundations of F#:
      Enums allow you to define a type made up of a finite set of identifiers, with each identifier mapping to an integer.
    • 2007, Teresa Hennig, Rob Cooper, Geoffrey L Griffith, Armen Stein, Access 2007 VBA Programmer's Reference
      The Access object model contains many enums that you can use in your applications.
    • 2009, Richard F Raposa, SCJP: Sun Certified Programmer for Java Platform (Exam CX-310-065):
      A unique feature of enums is that when you switch on a variable of an enum type, you do not prefix the case statements []
  2. (programming) In Rust, an enumerated type consisting of zero or more variants, each of which may resemble either a struct (with named fields), a tuple (with numbered elements), or a unit type with a single value.

Further readingEdit

  • “Enumerated types”, in The Rust Reference[1], 2020




enum f (plural enums)

  1. Abbreviation of enumeração.