Statements (35)
Predicate | Object |
---|---|
gptkbp:instanceOf |
data type
|
gptkbp:abbreviation |
enum
|
gptkbp:alternativeName |
enumeration
enum type |
gptkbp:can_be_extended |
in some languages
|
gptkbp:can_be_iterated |
in some languages
|
gptkbp:can_be_serialized |
yes
|
gptkbp:canBe |
pattern matching
switch statements associated values (in some languages) |
gptkbp:feature |
can be mapped to integers
improves code readability restricts variable to predefined values can be mapped to strings |
gptkbp:firstAppearance |
gptkb:ALGOL_68
|
https://www.w3.org/2000/01/rdf-schema#label |
Enumerated types (Enums)
|
gptkbp:purpose |
to define a set of named values
|
gptkbp:supports |
gptkb:Java
gptkb:Python gptkb:Swift gptkb:TypeScript gptkb:Go gptkb:C# gptkb:C++ gptkb:Rust C |
gptkbp:used_in |
gptkb:programming_language
|
gptkbp:usedFor |
representing states
representing flags representing categories representing error codes representing options |
gptkbp:bfsParent |
gptkb:JDK_1.5
gptkb:JDK_5.0 |
gptkbp:bfsLayer |
7
|