Hacker News new | ask | show | jobs
by matthiasv 2927 days ago
The point was about the user-facing side not the internal representation of state.
1 comments

Even then, it seems weird to prefer a big flat state rather than a state made of heirarchical sub-structures and arrays.
As the user of the library I probably don't care about the hierarchies. If I want X the library can provide me a function to get X by looking up its internal substructures and arrays so that I don't have to.