[racket] Another Canonical Use of Macros?
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>