|
|
|
|
|
by zonotope
2763 days ago
|
|
This concept is pretty subtle. Rich Hickey does a great job at explaining it (as always) in "Are We There Yet?"[1]. He deconstructs objects into state (attributes) and behavior (methods), and then uses values (or data) to represent state, and functions to represent behavior. Give that a watch a couple of times to get a better handle on what all this means from the Clojure perspective. [edit] To answer your other question, a value that isn't a collection in Clojure is called a scalar. 1: https://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hi... |
|