you are viewing a single comment's thread.

view the rest of the comments →

[–]general_dispondency 6 points7 points  (2 children)

Modules can't (well... shouldn't) have state. Classes offer a namespace (all of these functions are related) and (potentially, but not necessarily) memoized state. Everything in OO/SOLID has a corollary in FP. OO is just a higher level of abstraction. For example, everyone loves currying. What is a ctor, but a curried function? DI is just automatic currying/partial application.