There are no hard and fast rules that apply in all directions: the metadata is "context sensitive", so it can have different meanings depending on which object you attach it to.
Note that the Clojure explicilty metadata section of the site notes that metadata is for “arbitrary data annotation”.
Some comments:
- In some parts of Clojure, metadata is intended to be used in a specific way. A good example is the meta-data on vars described in Ralph's answer.
- If you define your own library with objects that have metadata, you can make the metadata average, whatever.
mikera
source share