PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Enums

< >
enum Gender { Male, Female, };
enum Direction { Up, Down }
Example from GraphQL:
enum Episode { NEWHOPE EMPIRE JEDI }
Example from C3:
enum TestEnum : int { FOO, BAR, BAZ }
Example from Jule:
enum ExitCode { Success = 0, Failure = 1 }
Example from Grammar:
boolCell enum true false

Languages with Enums include C, C++, TypeScript, Objective-C, GraphQL, C3, Jule, C2, Grammar, Tick C, cooC, Real-Time Concurrent C, Static Typescript

Languages without Enums include JavaScript, Python, HTML, Ruby, CSS, Cython

Read more about Enums on the web: 1.

HTML of this page generated by Features.ts

hasDynamicTyping.html 路 hasEnums.html 路 hasEscapeCharacters.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com