And now for something completely similar.

For a while, those of us who devoted a lot of time to understanding the Asian financial crisis two decades ago were wondering whether Turkey was going to stage a re-enactment. Sure enough, that’s what seems to be happening.

Here’s the script: start with a country that, for whatever reason, became a favorite of foreign lenders, and experienced a large inflow of foreign capital over a number of years. Crucially, the debt thus incurred is denominated in foreign currency, not domestic (which is why the U.S., also a recipient of large inflows in the past, isn’t similarly vulnerable — we borrow in dollars).

At some point, however, the party comes to an end. It doesn’t matter much what causes a “sudden stop” in foreign lending: it could be domestic events, like appointing your son-in-law to oversee economic policy, it could be a rise in U.S. interest rates, it could be a crisis in another country investors see as being similar to you.

Whatever the shock, the crucial thing is that foreign debt has made your economy vulnerable to a death spiral. Loss of confidence causes your currency to drop; this makes it harder to repay debts in foreign currency; this hurts the real economy and further reduces confidence, leading to a further decline in your currency; and so on.