Fork me on GitHub
#rewrite-clj
<
2020-08-28
>
sogaiu08:08:08

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:

iarenaza08:08:31

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.

sogaiu08:08:47

i think "form" is also used in a much more general sense elsewhere too.

sogaiu08:08:04

my understanding is that it's not that well-known that one can have constructs like this: #tag1 #tag2 "hello"

sogaiu08:08:33

for #tag1, it is #tag2 "hello" which is the target

sogaiu08:08:45

for #tag2, it is "hello" which is the target

iarenaza08:08:52

Yeah, because that use case is probably very rarely used 😏

sogaiu08:08:07

but in the realm of having to work with grammars, it helps to have precise terms

sogaiu08:08:28

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.

iarenaza08:08:05

I know. I just wanted to add another data point 😅

🙏 3
sogaiu08:08:19

thank you -- i appreciate it!

sogaiu09:08:29

thanks all, here is a draft summary for tagged-literal related items: https://gist.github.com/sogaiu/99958316b4a6c7b84bcc6af2eedce706