What’s are your thoughts about eye for an eye punishments?

Eye for an eye punishments means the criminal perpetrator will get the same type of treatment they inflicted among there victim as punishment.

For example if one person beats another person with a baseball bat unprovoked the court will order the person who committed the assault to get beaten with a baseball bat as well as punishment.

Updates
1 y
It seems like some countries still do this. This happened in Iran not long ago. A woman was allowed by the courts to pour acid onto the man who threw acid at her because she refuse his proposal.

https://www.nbcnews.com/news/amp/wbna43029928
What’s are your thoughts about eye for an eye punishments?
Post Opinion