What I mean is that no one deserves punishment. Each time someone is imprisoned or punished in different ways, it is not a win, but always a loss. In particular, lack of technology. In particular, lack of common sense.
That does not mean we must (I use "must" in practical sense and "should" in theoretical sense, where we are not constrained by conditions) never, say, imprison people. What I mean is that it should never seem a good solution. To me, in the cases where all alternatives are even worse, this solution is "bad, but the best". No one should enjoy someone's imprisonment. And no one should treat others, whatever they did, as scum.
Is there anyone (among people recognized in philosophy) who held/holds this or similar position?