Having done both, I just find it difficult to believe that substantive preference (rather than the preference not to be in a single gender environment) has anything to do with it. I’m surrounded by highly analytical left brained women who dissect mortgage backed securities for a living. I think they would’ve been great programmers. But the path to being a programmer starts with being the only girl in your high school CS class, and that’s a huge disincentive.
If this is true, then there must have been a lot of women coming out of law schools in the 1980s and 1990s. Otherwise, law firms in general could never hire and equal number of men and women. It's statistically impossible.
Whereas there are only a very small percentage (<10%) of women now graduating with CS and software engineering majors.