[racket] Another Canonical Use of Macros?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Mon Nov 25 12:02:31 EST 2013

Yes! 



On Nov 25, 2013, at 11:31 AM, Greg Hendershott <greghendershott at gmail.com> wrote:

>>> 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.