I think that the primary goal of court scentences should not be revenge, but "justice". Whatever that means. The possibility of punishment should be there to deter people from committing crimes. And they should be there so that after a crime, society can say: "See, we are serious about this. We do not want people to do those things".
So, the "revenge" thinking (with the extreme of "Take one life, and we'll kill you") does not seem right to me. Also, AFAIK, it was not designed into our juridical system - Which was designed to get past the "eye for an eye" system that was there before.
I also think that the primary goal of our prisons should be to re-integrate people into society, not punish them, but this is a completely different topic...
Edit: Clarified "The possibility of punishment should be there to deter"