This is surprising to me. In Germany, the constitution (as the highest law) is clear on the issue: punishment is not a goal, only deterrence of also the violator but especially others. I guess it is because the constitution here is quite new, compared to US. Funny tho, as I believe the US played an important role in drafting it.