New answers tagged

4

It is true that encapsulation in OO is typically used to hide private mutable state. However, this is a property of traditional OOP, which was an evolution of procedural programming. It is not a property of encapsulation per se, which can be (and is) used in a functional setting just fine. In fact, even objects can be functional. For example, here is a ...


Top 50 recent answers are included