2 ms·
It is difficult to grasp this from a distance. But generally: you can compose, destructure traverse/query and „update“ (in an fp sense) maps very freely and uni
by dgb23 7y ago
It is difficult to grasp this from a distance. But generally: you can compose, destructure traverse/query and „update“ (in an fp sense) maps very freely and uniformly. So there is already an opportunity to model your data very differently and to deal with parts of maps in sane isolated ways by querying and destructuring.
Structure in clojure is rather implicit. The benefit is that you can nail down structure where you need it typically with spec.
A helpful hint could be that keywords can be namespaced. This can lead to better uniformity when structuring maps.
Also your dev environment and approach matters here a lot, since you typically run a REPL while you develop, you evaluate forms incrementally and figure out details about your code ad-hoc, which goes way beyond just dealing with names.
Hope that helps a bit.