Top 1,000 Features Creators Resources Extensions Blog Explorer CSV Download
GitHub icon

Enums

< >
Example from 1 languages: C
enum Gender { Male, Female, };
Example from 1 languages: TypeScript
enum Direction { Up, Down }
Example from 1 languages: GraphQL
enum Episode { NEWHOPE EMPIRE JEDI }
Example from 1 languages: C3
enum TestEnum : int { FOO, BAR, BAZ }
Example from 1 languages: Parsers
boolCell enum true false
Example from 1 languages: Jule
enum ExitCode { Success = 0, Failure = 1 }
Example from 1 languages: Speedie
flags A B C D // A=1, B=2, C=4, D=8 constants X Y Z W // X=0, Y=1, Z=3, W=4
*

Languages with Enums include C, TypeScript, GraphQL, C3, C2, Parsers, Jule, Speedie

*

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

*

View all concepts with or missing a hasEnums measurement

*

Read more about Enums on the web: 1.

View source

- Build the next great programming language About Acknowledgements Part of the World Wide Scroll