This, exactly this. The problem is that the asker has to be able to take no as an answer, and deal with it. Which means not asking multiple times in rapid succession, or even asking often. And everyone involved (including friends) needs to make sure they don't shame the people involved in the exchange.
A lot of gendered problems enter this equation (at least for heterosexuals, I'm sure many other complicated societal problems (some of them related) exist for homosexuals). For example a problem for men is they have a lot of pressure to not be wrong and hence only ask women out when it's a sure, or very likely, thing. For example a problem for women is rape (i.e. rape culture, slut shaming, etc.), so they tend to hang out with their friends for protection, which makes it hard for (generally female) people to have (or talk about) a relationship without a lot of people knowing about it (you know, to back up that they aren't a slut, in case they get raped (I realize people here are pretty liberal, and that sounds horrid, but it's why some women often stick together and 'gossip')). Oh, by the way, one of those things is not like the other, one is a massive societal problem, one is merely a societal pressure, but both, among many others, need to be dealt with.
It's also why people flag submissions like this - the comments are full of vile hateful idiocy.
What you seem to think is candid, useful communication is anything but.
If you are attracted to someone you're going to be working closely with, there is a time-honored approach for dealing with it. You flirt. If you're good at flirting, then it is non-serious and does not create a threatening atmosphere. It shows off your positive personality qualities and hides your negative ones.
Most importantly, it gives the lady in question an out if she doesn't want to go there with you, she simply doesn't respond. If she doesn't respond to your flirting, then she's not interested and the stand-up, manly thing to do is to stop flirting, and carry on your working relationship in a completely professional manner.
Oh come on, with the romance and everything. Don't you see that our friend yummyfajitas here has bodies to fuck?
He is really just trying to help society to a more sophisticated and unfiltered understanding of his urgent needs and minimal concern to the accidental personality that may be contained in those bodies he desires.
Back before he was ushering in his new era of "rude honesty", it might have taken weeks to figure out whether a body is available to be penetrated by his penis. Now we can all rest assured that he will save himself and the bodies he surely deserves to boob-touch to his hearts content (if the feeling is mutual, of course, he's not a monster!) a good chunk of time.
It's really a win-win.
Example approach (in our scenario, this is toward the end of a workday, which is when you would want to do anything like this): "Hey, I've been having a lot of fun working with you, would you want to get dinner together sometime?" "Oh, I'm sorry, I'm [not looking for a relationship right now|seeing someone else|not interested in you that way|...]." "Oh, shoot. Well, I'll see you tomorrow then." (Go home.)
It may be a little awkward, but if you do things respectfully, then it will probably not ruin the working relationship. And more importantly, you'll have flattered the person you're working with, not creeped them out or made their workplace environment hostile, not cemented yourself in their mind as a total asshole, and not put yourself at risk for getting fired for harassment.
Of course, you will never do this to one of your reports or their transitive reports unless you would like to lose your job. Only peers or members of another org.
Revealing that you have sexual feelings for a person with whom you're nominally supposed to be forming a sexless, professional relationship will either lead down a path to sexual or romantic connection, or else make things tremendously awkward. That's not a sexist act, necessarily, but it could lead to a conversation with HR.
Honestly, I cannot tell.
Now I do believe that if society made it acceptable to just outright ask, with no hard feelings either way "hey, want to go out?" that everything would be better.
I guess my point is that I see the quotes you put forth as being ridiculously extreme examples of what would exist in the minds of only the most lowly of savage males.