Back in the day, in the United Kingdom, they had an analogous idea. In post war period if you had the misfortune of being convicted in a court of having had homosexual intercourse you would be given a choice. You could go to jail, or you would be compelled to submit to a medical treatment, which was intended to eliminate all sexual desire.
One such individual who ran afoul of the law was Alan Turing.
Alan Turing, of course, is famous for having played a lead role amongst the code breakers at Betchley Park, during the Second World War. He and his colleges regularly broke the Enigma and Lorenz codes, allowing Allied intelligence to read the enemies mail.
This, according to Winston Churchill, substantially shortened the war, and doubtlessly saved untold millions of lives.
So despite his having been considered a national hero in Britain, in 1952, government officials arrested and prosecuted Alan Turing on the charge of "gross indecency" when he admitted
to maintaining a same-sex relationship.
Rather than serving time in prison, Turing chose to undergo estrogen injections then considered in men as a form of “chemical castration” eliminating their sex drive. Turing took his life two years later by swallowing cyanide just two weeks short of his 42nd birthday.
What a way to treat a hero!
Instead of doing ghastly things to homosexuals, we should leave them alone.
Edited 8/28/2017 03:14:27