News for hackers. Stuff that matters.
Re:OOP vs. Functional Programming (2014) by lmm on Tuesday October 30, 2018 @05:02AM (#18334880)
> if you can poke at the data then you can violate contracts that give rise to the common structure.

Maybe if you can mutate it, but having it be visible isn't an issue.

> Abstract datatypes certainly hide mutable state.

ADTs are normally understood to be values i.e. immutable. Hidden structure is not the same thing as hidden state.

There are no comments on this comment yet.