4 ms·
Well, in Clojure at least, data is a generic thing you structure your program around, and is not hidden inside a class coupled to behavior. This is safely enabl
by WinLychee 3y ago
Well, in Clojure at least, data is a generic thing you structure your program around, and is not hidden inside a class coupled to behavior. This is safely enabled by immutable values as a default. The standard library and ecosystem consists of generic functions operating on that immutable data. This is very liberating as you do not run into a combinatorial explosion of incompatible types that need to be marshaled to work together.
Generally you have 3 kinds of things in Clojure: associations (maps), sets (uniqueness), and order (lists/vectors).
- otter-in-a-suit 3y agoI think you’re describing FP in general here. I, too, am a fan, especially in data intense applications, where a clear / decoupled data model and aggressive compiler solve many headaches.