Re:FP vs. OO, from the trenches
by seanmcdirmid on Monday July 22, 2013 @04:35PM
(#6086302)
OOP is most definitely defined by encapsulation of state into objects that have identities. There are many points to deal with messaging, on the other hand, as well as polymorphism, which are all compatible with what OO is from a design perspective. Otherwise, the anthropomorphic properties of the object are no longer sustainable, and it's noun-ness disappears.
The cake pattern has as much to do with encapsulation as it does crosscut composition.
The cake pattern has as much to do with encapsulation as it does crosscut composition.