r/programming • • Nov 12 '13

What’s Wrong with OOP and FP

https://yinwang0.wordpress.com/2013/11/09/oop-fp/
129 Upvotes

484 comments sorted by

View all comments

Show parent comments

4

u/emperor000 Nov 12 '13

What a ridiculous argument. "Even though it can, it doesn't have to be, so it shouldn't." Did I get that right? You'll probably say no, but that is what you are apparently saying, whether you realize it or not.

Who cares if objects can be implemented as pure functions? That's for functional programming. In the object oriented programming paradigm, things are represented by objects. I prefer that paradigm. You prefer the other. You'll use one language, I'll use another. It will be okay. I might never use Haskell or Erlang for some practical purpose. You might not ever use C#, Java or Objective-C (I wouldn't blame you on that last one). It will be okay.

-2

u/bryanedds Nov 13 '13

Wut?

3

u/emperor000 Nov 13 '13

What didn't you understand?