Re: [racket-users] Macro generating macro question

2023-05-24 Thread Kevin Forchione
> On May 24, 2023, at 2:11 AM, Jens Axel Søgaard wrote: > > #lang racket > (require (for-syntax syntax/parse > racket/syntax)) > > (define-syntax (make-id-macro stx) > (syntax-parse stx > [(_ id) > (with-syntax ([name (format-id #'id "do-~a" #'id)] >

Re: [racket-users] Macro generating macro question

2023-05-24 Thread Jens Axel Søgaard
Hi Kevin, When you are writing macro generating macros there are two levels of ellipsis. The outer one, which you can write as ... as normal and the inner one which you need to escape. You can escape it with (... ...). That looks odd to me, so I usually bind it to an identifier named ooo. #lang

Re: [racket-users] Macro generating macro question

2023-05-24 Thread Stephen De Gabrielle
Hi Kevin The most active places for ‘Racketeers’ is the Racket [Discourse]( https://racket.discourse.group/) and [Discord](https://discord.gg/6Zq8sH5) Please join us! See also https://github.com/racket/racket/wiki/Macros - in particular i think you may find what you are looking for in

[racket-users] Macro generating macro question

2023-05-23 Thread Kevin Forchione
Hi guys, I’m stumped. In a nutshell I want to write a macro that is passed an id and will produce a macro called id that can take variable arguments. I’m sure I’m overlooking something fundamental. The basic form below “works” if I don’t have ellipsis aver the variables, but that’s not what