I'm a little conflicted on that topic. Part of that is from experience pertaining to Asperger's reveal itself, while the other part is from experience with other minority traits that I have, things that are more commonly talked about.
Allow me to explain:
I've only been at one company where I disclosed it, and it did not go well
at all. That being said, I had been in the company for about a year and a half already, so maybe the managers felt that they were tricked on the goods or something? I don't know. I'm coming up with that theory because of my boyfriend's reaction. We've been together for years, and I remember when I first came across things on Asperger's, I told him I could relate to a lot, but I think he wasn't paying attention. After a few years, we eventually moved in together, and the first few months were quite a rough ride, no matter how much I tried to adjust. And then I had this major stressful event at work (it was the day I told my wonderful boss about ASD), and some kind of a fight ensued with my boyfriend the next day, complete with full-on meltdown and all. When I returned to normal, I told him about it. And he was so surprised, almost like my admission was a betrayal. I think he said something like the right thing to do would have been to tell him about it before moving in together, but in my mind, I already had.
So yeah, I do have some regrets maybe not so much about telling, but about the context and purpose of the revelation.
On the other hand, it's definitely a great sorting filter, as someone else said already, especially for new people, or people you're undecided on. If you intend to do some spring-cleaning in your friends, this is the perfect tool to prune and clean.
That's coming from a totally different experience. As obviously nobody can tell from a painting of a humminbird, I'm biracial, but light-skinned enough to pass for Mediterranean, which is better accepted where I live. Unless people see my hair is curly, and then they figure it out, and I'm suddenly not accepted so well anymore. I've received my share of racist crap in different jobs over the years, until I started using my hair as a bigot-deterrent (not saying it's foolproof, but it's pretty good). Meaning I have systematically gone to job interviews with groomed, curly hair. And if my hair is going to be a problem for a manager, then working for said manager is going to be a problem for me. If one of my labels bothers them to the point they will deprive me of certain opportunities, then they are not worthy of my skills and time.
I've used the same approach with acquaintances and friends, pertaining to my diagnosis, and so far I have not had regrets about it. I even had one say that he himself was looking into seeking a diagnosis. I might use this if I have job interviews for jobs I don't want