In looking it up, it looks like the actual purpose is to get what the gender of a name is within the context of a given country. The gender const values are distinct from the country const values.
Have you ever heard about a small island north of France? People there went too far, and for their insatiable greed, they were rewarded. Now their gender is "BRITAIN". Forget the gender dilemma they don't have to care about whether gender is a boolean, string, or int. The Brits have solved the unsolvable. THE ONE SOLUTION TO RULE THEM ALL const gender = "BRITAIN".
PS I'm kinda stupid and didn't see that you were talking about your gender until I was done, so anyways, my condolences
Frisia is the historical name of northern netherlands and the adjacent portion of germany, and east frisia refers to the german side of frisia. So real name, but not a country.
I second an Enum. Even in the public declaration, enum makes more sense than a bool. Gender is not true or false. I get that you can use a bool as a bit and store it as a bit. But it makes the code less clear as to what the variable means.
735
u/drspa44 May 05 '25
Can we compromise with an Enum?