There was an interesting question on StackOverflow this morning: Why doesn't NSOrderedSet inherit from NSSet? It's interesting because the reason is so easy to miss. I thought it would make a good blog post because it turned out to be a nice, real-life example of the Liskov substitution principle (herein abbreviated to LSP).
↧