rewrite-clj

https://github.com/clj-commons/rewrite-clj
snoe 2020-08-28T07:31:12.100200Z

This might be useful https://clojure.org/reference/reader

2020-08-28T08:20:08.103100Z

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:

iarenaza 2020-08-28T08:45:31.105500Z

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.

2020-08-28T08:51:47.106Z

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

2020-08-28T08:53:04.107Z

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

2020-08-28T08:53:33.107600Z

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

2020-08-28T08:53:45.108100Z

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

iarenaza 2020-08-28T08:53:52.108400Z

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

2020-08-28T08:53:56.108600Z

sure

2020-08-28T08:54:07.109Z

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

2020-08-28T08:55:28.110200Z

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.

iarenaza 2020-08-28T08:56:05.110700Z

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

🙏 1
2020-08-28T08:56:19.111Z

thank you -- i appreciate it!

2020-08-28T09:56:29.112500Z

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