Not really. My thoughts are an eye for an eye. Done and done.
Ah, that's Sharia Law! And yes, both Sharia Law and the Mosaic Code (Bible -Old Testament) are based upon Hammurabi's Code.
If you want to remove the "animals" from human society, "life in prison without possibility of parole" works equally well and it is much cheaper.
We spend LOTS of money on appeals for the condemned, because as Toe points out, we get it wrong a sometimes. Perhaps we should not worry so much about this and just accept the deaths of the innocent as collateral damage. Certainly countries like China, Iran, and Saudi Arabia don't worry about killing off innocents in their quest for order. As for law, who needs any stinking laws?