Re:“A closure is a poor man’s object; an object is a poor ma...
by seanmcdirmid on Monday May 01, 2017 @09:29PM
(#14243306)
If you have a variable X that is pointing at different immutable maps over time, then X is the identity of your object that is implemented with multiple immutable maps.
To me the important thing is hiding internal state and sending high level messages instead of something like "change internal field x to y". Whether that internal state you're hiding is immutable or not seems irrelevant to me.