bkovitz
2018-11-26 21:43:28

Is there an easy way to attach a tag at compile-time to an identifier that a macro can inspect later? I tried to do it with syntax-properties but I don’t think that’s right because that attaches a tag to a syntax object during the evaluation of one macro, rather than attaching a property to an identifier.

The purpose is to mark some functions as operating on a graph, so that the graph argument can be conveniently omitted in various situations, as illustrated below.


bkovitz
2018-11-26 21:53:59

I think this would also be great in a custom REPL, where I’m constantly wanting to operate on graphs but I don’t want to see or even name each new version of the graph.