The essence of modern economics can be summed up in two words: borrowing money. One generation spends, and the next spends a lifetime paying it back.
If I understand correctly, then if one generation borrows money, the next generation will still have to pay if the borrower is faced with death, but this is a personal loan concept that is carried out by each individual. If it is broader, it can be simplified, the government that is currently elected starts taking loans and even though its term of government ends, the next government will also have to pay the debt.
Such things only lead more to local customs or habits in the matter of paying debts, but if we direct it at the government, of course it will lead more to the rules of the government itself. However, my Koran teacher once said that a child has no obligation to pay his parents' debts that were made by his parents in the past. But because most children always love their own parents more, of course they are also not willing if their own parents are still in debt to other people so they prefer to pay it directly even though it is not their obligation as a child.