Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on OOP vs. Functional Programming (2014). Parent comment
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.
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.