r/functionalprogramming • • Apr 03 '25

OO and FP OOP vs. Functional is Dead

https://medium.com/@alexander.paul.gilbert/oop-vs-functional-is-dead-ff51a70c83ce
18 Upvotes

31 comments sorted by

View all comments

Show parent comment

4

u/Weak-Doughnut5502 Apr 03 '25

Yeah, I don't really disagree. 

Still, the semantics of pure/referentially transparent IO vs impure are different in important ways.

You can see it pretty easily in something like Scala by comparing something impure and eager like Future with cat's IO.  Assorted refactorings that are correct with IO aren't correct with Future.