Skip to content

Commit

Permalink
metadata wip
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Dec 17, 2023
1 parent ac501f4 commit 0c32608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/reference/metadata.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ Modify or reset the metadata respectively for a namespace/var/ref/agent/atom.
In addition to with-meta, there are a number of reader macros (<<reader#macrochars,The Reader: Macro Characters>>) for applying metadata to the expression following it at read-time:

* `^{:doc "How it works!"}` - adds the metadata map to the metadata of the next value read
* `^:dynamic` - like `^{:dynamic true}`
* `^:keyword` - adds the metdata `^{:dynamic true}`
* `^String` - like `^{:tag java.lang.String}`
* `^"java.lang.String"` - like `^{:tag java.lang.String}`
* `^[String long _]` - like `^{:arg-tags [String long _]}`

The `:tag` key is used to hint an objects type to the Clojure compiler. See <<java_interop#typehints,Java Interop: Type Hints>> for more information and a complete list of special type hints.

Expand Down

0 comments on commit 0c32608

Please sign in to comment.