What do the Clojure docs mean by "associative support"? -
i reading clojure documentation on datatypes. under list of differences between deftype
, defrecord
states defrecord
has "associative support". i'm new clojure , wondering if clarify term me.
"associative support" means object implements the associative interface. includes lookup key, , ability create new object additional key/value pair added.
in general, means objects created defrecord
can -- large part -- treated if standard clojure maps, whereas when using deftype
, if want functionality need implement yourself.
Comments
Post a Comment