Enums

>enums

Attached: 1565843469699.jpg (224x224, 17K)

Other urls found in this thread:

eel.is/c draft/dcl.enum#8
twitter.com/AnonBabble

create table some_table
{
some_column varchar(50)

, constraint not_enum check (some_column in ('this is an enum value', 'so is this'))

}

seriously, what are they for
who even uses them

.t go user

Good for holding vars that need to be operated on by bitwise ops.

from summerfags to freshman unifags
fucking hell

Just things that people find that makes their lives easier.

enum thing_t {
THING0, THING1
};

enum thing_t a = 45;

And that's a GOOD thing.

>C
Xd

>language has enums instead of algebraic data types
I honestly can't go back after experiencing sum-types