>enums
Enums
Luis Kelly
Other urls found in this thread:
Joshua Long
create table some_table
{
some_column varchar(50)
, constraint not_enum check (some_column in ('this is an enum value', 'so is this'))
}
Lincoln Powell
seriously, what are they for
who even uses them
Justin Ross
.t go user
Daniel Morales
Good for holding vars that need to be operated on by bitwise ops.
Isaac Wilson
from summerfags to freshman unifags
fucking hell
Jace Kelly
Just things that people find that makes their lives easier.
Kayden Hall
enum thing_t {
THING0, THING1
};
enum thing_t a = 45;
And that's a GOOD thing.
Levi Ramirez
>C
Xd
Jayden Bailey
>language has enums instead of algebraic data types
I honestly can't go back after experiencing sum-types