Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
alyx17527yThat's a bit... reductive. Sex and gender have somewhat of a looser connection than most people assume, and even in biological terms it's not a strict binary of "male" and "female" either.
-
Gophyr19227yWhat are 1 and 2 referencing? If it's X chromosomes, 1 should really produce a boy :)
-
Alternatively he could ask prospective parents to define attributes which are then substracted from a random string length. If some string is left over it'll be a boy!
-
@alyx well... In terms of chromosomes, at least (which is what I think this code is about), there's only two options.
-
If you believe that god knows the past, present and future, I'd assume c++ templates and meta-prgramming would have been used. Everything was calculated at compile time and we are just replaying it :/
-
@rubslopes But there's people who are morphologically "striped" with XX/XY zones in their body (like a zebra!), there's people with XXY in each and every cell, and even XXYYY.
So even if you'd just consider biology and chromosomes, it would be a long list (cell, cell, ...) with smaller variable 2-5 length lists of sex chromosomes per cell ((c, c, ...), ...) where each chromosome element has a binary type c = X | Y. -
nmunro31907yWhat if it's all functional and gender is a side effect of simply creating new life?
Then gender assignment, which as mentioned before isn't binary anyway, could be argued to be a side-effect of creating new life, and if that's the case then gender assignment would have to be wrapped up in a monad. -
@nmunro Oh please apply your functors to my gender monad, lift me, lift me harder, mess up my purity, I don't care if it's unsafe!
Yup, FP sexting should be a thing. -
nmunro31907y@bittersweet I couldn't say if it should or shouldn't but... Uhm... I'm not feeling it.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
If god was a programmer, do you think he made us like
int sex = rand()% 2+1;
if (sex == 1){
std::cout << “it’s a girl!”;
}
else if (sex == 2){
std::cout << “its a boy!”;
}
undefined
c++
god
gender