You are thinking of your failed marriage entirely from the perspective of the remembering self. A divorce is like a symphony with a screeching sound at the end – the fact that it ended badly does not mean it was all bad. Thinking, fast and slow, p. 385, Daniel Kahneman.
