Comment by wyager
11 years ago
>OO and functional programming are not opposites in any way, nor should they be.
Depends what you mean by "OO".
If you mean mutable + stateful programming with objects as an abstraction mechanism (which is what people usually mean by "OO"), then yes, it is in some ways opposite to pure FP.
OO to FP is kind of like Turing Machines to the Lambda Calculus. They both get the job done, but one is kind of a hack and one is very elegant.
Which one is a hack and which one is very elegant, may depend on who you ask...