String title = "Choosing a variable type for storing gender";
String title = "Choosing a variable type for storing gender";


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
14 0 Reply"Please Input Your Gender":
Girl' ; DROP TABLE GENDERS
13 0 ReplyShouldn’t it be a float?
6 0 ReplyI don't think so, but i would like to hear why a float would be better. Might change my opinion.
3 0 ReplyI think the reason why is because a float would be easier to store, while having enough possibilities for such data.
2 0 Reply
Can we store gender on a quantum computer? Quibits.
6 0 Replywhy have to store it as data at all?
4 0 ReplyHow else will they know how to spend their ad dollars!?
2 0 Reply
Just call the variable isGender
4 0 ReplyStrings are messy. I'm in favor of some covoluted struct or union.
4 0 ReplyThey’re also too static. Need a user provided script to handle things like gender fluid.
1 0 Reply
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
2 0 Reply3d vector gender
2 0 Reply:3 thanx. Hav headpats (if you wan ofc)
2 0 ReplyThanks for the headpats
2 0 Reply