[racket] Another Canonical Use of Macros?

From: Ben Duan (yfefyf at gmail.com)
Date: Tue Nov 26 07:06:51 EST 2013

Great example. It all clicked to me now.

Thanks


On Tue, Nov 26, 2013 at 12: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"?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131126/04a3579d/attachment.html>

Posted on the users mailing list.