3 ms·
Sounds profound, but I don't know why you'd want to use this metaphor heavily.
by ogogmad 4y ago
Sounds profound, but I don't know why you'd want to use this metaphor heavily.
- astrange 4y agoState encapsulation is useful insofar as, if you wanted to write a proof that those pieces of state were only ever set correctly (eg using a statechart), you can now do that. OOP languages never actually include this because nobody seems to particularly care if their code actually works.