Ask HN: Relationship between OO and functional programming?
recommended by 2 users | 2016 | 194 points by spdionis | functional programming | original thread |

Since Alan Kay has shown interest (https://news.ycombinator.com/item?id=11806853) in saying something on the topic of OO and functional programming I opened this thread.

I purposefully left out the word "versus" because I do not believe there is such a strong dichotomy and to avoid flamewars.

2 users recommended this thread. What they said:
z1mm32m4n Jun 15, 2016 | on: Learning Elm has gotten me confused about static vs.… | context

> Whatever Scala devotees may believe [...]

It's not just Scala devotees. You should read [this post][1] by Alan Kay (Turing Award winner, designer of Smalltalk). He arrives at a conclusion that might surprise you:

> I think of "objects" and "functions" as being complementary ideas and not at odds at all.

Largely what you may be referring to is the idea of purity and mutation being at odds, but these are orthogonal from the ideas of OOP and FP.

A very interesting read.

[1]: https://news.ycombinator.com/item?id=11808551

Splines Oct 29, 2018 | on: Soup – Alan Kay on Objects | context

This is in the comments of the post but the author should really have linked to Alan Kay's comments here:

https://news.ycombinator.com/item?id=11808551