News for hackers. Stuff that matters.
Re:What OOP Isn't by silentbicycle on Friday December 10, 2010 @12:59PM (#1992482)
What does inheritance give you that pattern matching doesn't?

Edit: Also, what raganwald says.

Re:What OOP Isn't by jpr on Friday December 10, 2010 @03:27PM (#1993029)
Extensibility of the type without breaking existing code. When you add or remove a case from an algebraic data type, you pretty much need to modify all functions that operate on it since they contain patterns that mention the data-constructors that you either removed, or they don't cover all the cases anymore.

(if you meant pattern matching as in text/regular expressions, disregard what I just wrote)