I saw a post from someone wanting more trans memes and took that as a sign to post one of mine.
Nah fam Rust has you covered:
enum Gender { Male, Female, Other(str&), };
That said my Rust knowledge is shit
“Please Input Your Gender”:
Girl' ; DROP TABLE GENDERS
I will never not laugh at this joke, it’s so sudden and unexpected. And the all caps is so “loud”. I love it :)
Shouldn’t it be a float?
I don’t think so, but i would like to hear why a float would be better. Might change my opinion.
I think the reason why is because a float would be easier to store, while having enough possibilities for such data.
Is there some array that links a specific float value to a gender? Storing something like that as a float and having to look it up outside the object itself to determine it’s actual value seems like bad practice to mezcal but I’m not a developer by trade.
Can we store gender on a quantum computer? Quibits.
why have to store it as data at all?
How else will they know how to spend their ad dollars!?
Just call the variable isGender
Strings are messy. I’m in favor of some covoluted struct or union.
They’re also too static. Need a user provided script to handle things like gender fluid.
In the app I’m building contacts have an Enum Sex (Male, Female, Unknown) and an Integer Gender which is a foreign key to gender table
:3 thanx. Hav headpats (if you wan ofc)
Thanks for the headpats
3d vector gender
Float Gender