In addition to with-meta
, there are a number of short-hand reader
macros for affixing metadata to objects.
^{:doc "How obj works!"} obj
- Sets the metadata ofobj
to the provided map. Equivalent to(with-meta obj {:doc "How obj works!"})
.^:dynamic obj
- Sets the given keyword totrue
in the object's metadata. Equivalent to^{:dynamic true} obj
.