Some have argued for something like this. They say public punishment is a better example than the private way our current system employs so others can "learn from their mistakes". Or be afraid more like it.