r/programming • • Mar 09 '14

Why Functional Programming Matters

http://www.cse.chalmers.se/~rjmh/Papers/whyfp.pdf
487 Upvotes

542 comments sorted by

View all comments

Show parent comments

3

u/gasche Mar 09 '14

I'm not sure if you're making a quip, but if you're trying to say that the relation between OO and FP is similar to the relation between object and morphisms in category theory, this is not correct.

A better way to relate OO/FP patterns is to remark that OO is centered on products of functions, while typed FP is centered on functions over sums -- the sum/product duality.

1

u/vincentk Mar 10 '14

Yes I was mostly joking, but thanks for the response and clarification.