People think that the failure of socialist policies in New York will help the population of that city, and indeed the entire USA, to learn how harmful such policies are and to never choose them again.
I wouldn't bet on it. They will blame the state and Trump for every failure, and people will believe them - not because it makes much sense, but because they want to believe it. This is the biggest deception of socialism - it offers hope to the masses who are lazy and have no desire to work honestly, who would steal if it were possible and allowed, so they are looking for a state that will do it for them. That dream is strong and it is difficult for people to give it up.
That is why socialist states last for a very long time despite the fact that they never, even at the beginning, bring prosperity. It's failure after failure, but the authorities always have a scapegoat - America. If Cuba and Venezuela, which have completely impoverished their population, manage to shift the blame to America for decades and their population believe it, then Mamdani will be able to do it too.
So I'm not sure Americans will learn a lesson quickly. I would even bet that this is a new trend that will spread even further. The greatest luck for opponents of socialism in the US is that this man does not have the conditions to run for president of the country, otherwise it would be very tense in 3 years.
