ENUM

GPTKB entity

Statements (25)
Predicate Object
gptkbp:instanceOf gptkb:programming_language
gptkbp:alternativeName enumerated type
gptkbp:commonIn gptkb:Java
gptkb:Python
gptkb:Swift
gptkb:TypeScript
gptkb:C#
gptkb:C++
C
gptkbp:feature can be iterated in some languages
can be mapped to integers
can be used in switch statements
can have custom values in some languages
improves code readability
restricts variable to predefined values
used for option selection
used for state representation
https://www.w3.org/2000/01/rdf-schema#label ENUM
gptkbp:purpose to define a set of named values
gptkbp:standsFor enumeration
gptkbp:usedIn gptkb:programming_language
gptkbp:bfsParent gptkb:Lawrence_W._Conroy
gptkb:NAPTR
gptkb:e164.arpa
gptkbp:bfsLayer 7