3 ms·
You still have encapsulation interests, as a matter of namespacing or interface building, in functional languages.
by pyrale 9y ago
You still have encapsulation interests, as a matter of namespacing or interface building, in functional languages.
- js8 9y agoThese are different things for a different purpose. Data encapsulation, as defined in OOP, is obsolete, I think. Namespacing is related to modular programming, which is still useful even in functional programs (it makes sense to group related data and functions together for organizational purposes). Interfaces serve a different purpose yet, to do a dispatch based on type.