[racket] Another Canonical Use of Macros?

From: Greg Hendershott (greghendershott at gmail.com)
Date: Mon Nov 25 11:31:30 EST 2013

>> Thanks for the insights. But what does "data sublanguage" mean?
>>
> Say you want a three-state machine where the states are labeled 'go, 'stop, 'warning and you use a stream of signals to switch between states say 'button-down 'x 'y, you can eliminate the quotes from the surface syntax with macros that place the quotes on the right pieces. Instead of symbols you can think string and/or nests of these.

Would module names in `require` and `provide` be another example -- in
the sense that `(require net/url)` expands to "net/url/main.rkt"?

Although this is string quoting not `quote`, I think same macro
category of "quoting" or "data sublanguage"?


Posted on the users mailing list.