By penalizing their creditors, sure. That should teach them (and anyone else paying attention) not to lend to such countries in the future.
It reminds me of Baron Munchhausen pulling himself out of the swamp by his own hair.
By penalizing their creditors, sure. That should teach them (and anyone else paying attention) not to lend to such countries in the future.