This might be useful https://clojure.org/reference/reader
thanks for the link. i had checked it for a term that might correspond to "tagee" (or "metdatee") but did not come away with anything useful. however, that has been a a useful resource in the overall endeavor of arriving at good terms and definitions so i hope to continue to revisit it :thumbsup:
I don't know if this is what you'd like to use, but the default data reader function (https://clojure.org/reference/reader#_default_data_reader_function) refers to those two pieces as :tag
and :form
. The term form
is used also a couple of times in the "Tagged Literal" section to refer to the piece of data that comes after the tag.
i think "form" is also used in a much more general sense elsewhere too.
my understanding is that it's not that well-known that one can have constructs like this: #tag1 #tag2 "hello"
for #tag1
, it is #tag2 "hello"
which is the target
for #tag2
, it is "hello" which is the target
Yeah, because that use case is probably very rarely used 😏
sure
but in the realm of having to work with grammars, it helps to have precise terms
the background is that i'm working on a few grammars for clojure -- and the terms i use within them will end up being exposed as a kind of public api. changing this later is likely to be painful. so i'd like to put in some effort up-front to reduce that sort of thing later.
I know. I just wanted to add another data point 😅
thank you -- i appreciate it!
thanks all, here is a draft summary for tagged-literal related items: https://gist.github.com/sogaiu/99958316b4a6c7b84bcc6af2eedce706