18

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!”;
}

Comments
  • 11
    There is one more
  • 12
    Pretty sure God uses assembly
  • 8
    That'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.
  • 2
    Now imagine god forgetting to reseed the random method
  • 2
    What are 1 and 2 referencing? If it's X chromosomes, 1 should really produce a boy :)
  • 1
    What about people whom have both sexes(penis and uterus)
  • 2
    @alyx the sex variable should be a struct of 2D float arrays.
  • 0
    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!
  • 0
    @RazorSh4rk I'm God
  • 1
    @alyx well... In terms of chromosomes, at least (which is what I think this code is about), there's only two options.
  • 1
    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 :/
  • 2
    @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.
  • 0
    What 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.
  • 1
    everything is strings :)
  • 0
    @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.
  • 0
    @bittersweet I couldn't say if it should or shouldn't but... Uhm... I'm not feeling it.
  • 0
    @Artemix c++ is c with classes
Add Comment