I hate to go on a tangent, but what are some examples of things that OOP does better than FP?
I can only think of a couple examples: data structures and some APIs.
I can only think of a couple examples: data structures and some APIs.
I love both FP and OOP and especially love using them together. I honestly don't get these arguments.
Whether data structures should be objects rather than primitives depends very much on the data.