Re:“A closure is a poor man’s object; an object is a poor ma...
by dragonwriter on Monday May 01, 2017 @07:51PM
(#14242837)
The thing is, in simple cases the implementation will trivially parallel the sensible interface. So setters are appropriate.
The problem becomes using setters where that's not the case, often to support tooling that is dependent on constructing objects from serialized state (which often also involves the same kind of abuse of getters, to which exactly the same concerns apply.)
The problem becomes using setters where that's not the case, often to support tooling that is dependent on constructing objects from serialized state (which often also involves the same kind of abuse of getters, to which exactly the same concerns apply.)