The perhaps larger implication of encapsulation in a language such as Java is that functions have been degraded to a means of mutating data inside a specific type of object.
- Chapter 3. Functional programming primer
- from Reactive Web Applications: With Play, Akka, and Reactive Streams
- Publisher: Manning Publications
- Released: July 2016
This is a really great remark. In functional programming, functions are primarily used in mathematical sense, as black boxes that take input and produce output, rather than means of mutating data inside an object.
Share this highlighthttp://www.safaribooksonline.com/a/reactive-web-applications/4571457/