Stoning of prostitues is an anciet custom. It kills the person as capital punishment does.
Capital punishment is used for punishing crimes like willful killing.
But isn't prostituation also a form of willful killing?
When a man catches AIDS, he will transmit it to his wife and children. Such a woman knows these facts, but doesn't heed.
It is murder of the innocent people. Maybe the man deserves it, but what about his poor wife and children?