https://outlookzen.com/2016/06/18/we-need-cruel-and-unusual-...
Let's just say it wasn't well received. Few people presented any logical arguments against the proposal, but the majority found it "unpalatable".
I highly doubt that most people who rob cars, burglarise people or commit fraud are simply mentally ill people who need someone to talk to. Some people only respond to punishment. And in the case of those people I think that a short and painful punishment (whipping) is better than a long and life altering punishment (jail).
I don't say prisons are useless but you could probably cut prison population by 70%+ and have a safer society as a result. And a psychologist isn't expensive compared to a 1 year prison sentence.