> On May 24, 2023, at 2:11 AM, Jens Axel Søgaard <jensa...@soegaard.net> 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)] > [ooo #'(... ...)]) > #'(define-syntax (name stx) > (syntax-parse stx > [(_ parms ooo) > #'(list parms ooo)])))])) > > (make-id-macro foo) > (do-foo 1 2)
Thanks! That was the fundamental concept I was missing. I don’t recall seeing that in the documentation, but now that I know I’ll search for that and see if I glossed over it somehow. -Kevin -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/beaa2ef6-afd2-4686-829a-390eb69f5620n%40googlegroups.com. Beyond the Racket Users Google Group, Racket Discussions take place on Discourse ( https://racket.discourse.group/ ) and Discord ( https://discord.gg/6Zq8sH5 ). Discussion (but less active) also takes place on the Racket Slack https://racket.slack.com/ ( sign up at https://racket-slack.herokuapp.com/ ), and IRC #racket https://kiwiirc.com/nextclient/irc.libera.chat/#racket --- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/D299A992-F57A-4050-B8DD-67DCAC468124%40gmail.com.