Wow, section 4 is exactly, almost word for word, what I was trying to do.
This is a great resource.
On Fri, May 3, 2013 at 7:35 AM, Philipp Dikmann wrote:
> You might have already read it, but I also found the guide "Fear of
> Macros" by Greg Hendershott incredibly helpful in understanding the
You might have already read it, but I also found the guide "Fear of
Macros" by Greg Hendershott incredibly helpful in understanding them,
especially considering things like with-syntax and format-id:
http://www.greghendershott.com/fear-of-macros/index.html
On 03.05.13 04:57, Sean McBeth wrote:
I think I get it just from reading it (in bed, on the phone, annoying the
wife). I had tried to do almost this very thing with datum->syntax at one
point, but I had put the quotesyntax on datum->syntax, not on id directly.
I don't understand why that would make a difference, it seems like it is
si
Aaah, man. Thanks. Shutdown the pc for the night so u will try tomorrow.
On May 2, 2013 10:35 PM, "Jay McCarthy" wrote:
> You were close to what you want. Here's a version with a nice utility
> and then the underlying machinery that makes it:
>
> #lang racket
> (require (for-syntax racket/syntax)
You were close to what you want. Here's a version with a nice utility
and then the underlying machinery that makes it:
#lang racket
(require (for-syntax racket/syntax))
(define-syntax (double-define stx)
(syntax-case stx (double-define)
[(_ id val1 val2)
(with-syntax ([id-1 (format-id
5 matches
Mail list logo