Indisputably charismatic, loathed by some, beloved by many, Fidel Castro ceased to have much practical influence on Cuba’s affairs some years ago, when he passed the torch to his brother Raul. The death of the President of the Cuban Revolution, as he was latterly styled, is, though, a significant moment.

It is apparent that a half-century of Castroism hasn’t delivered the kind of economic success enjoyed by other emerging nations. The communist experiment flopped, as it always has. His supporters are right to point to Castro’s achievements in literacy, education, health and social progress. Yet while Cuba enjoys some of the best and free medical services for a country of its size and wealth, it also has one of the lowest rates of internet usage. The island has been cut off from the rest of the world economy for so long that, like the rule of the Castro clan, it is almost taken for granted. It should not be.

Emerging from communism as Cuba now is, its leaders can at least look to the different experiences of former Comecon friends and allies, not least Russia, for warnings and for inspiration. Most of the former Soviet satellites in eastern Europe, for example, have made a relatively orderly and peaceful transformation into free liberal multi-party democracies. Cuba has no reason to fear a free media, free trade unions and free trade with her neighbours (assuming her neighbours want it). Tourism, currency reform and an influx of investment would offer an immediate boost to the Cuban economy.

It is also clear that America’s long punishment of Cuba through a trade embargo and other sanctions is a policy that failed. After all, unlike many other ex-dictators, Castro died peacefully in his own time in his own bed. President Obama was right to recognise that and to seek to engage with a Cuba that was plainly once again looking at to the world, and in particular at its uneasy relationship with its powerful superpower neighbour, a mere 90 miles distant. The danger, seemingly already confirmed by a characteristically thoughtless and tasteless tweet, is that Donald Trump will take hope for Cuba and turn it into hate.