Hi guys, I’ve been trying to figure out the syntax for a guard when the pattern has ellipsis and you want to guard one of the variables. Here’s an uninteresting macro but it shows what I mean.
#lang racket (define-syntax (foo stx) (syntax-case stx () [(_ (key val ...) ...) (and (identifier? #'key) (identifier? #'val)) #'(quote (list ((quote key) (quote val) ...) ...))])) (foo (a b) (c d e)) Of course it complains about the ellipsis being missing in the pattern. Is this something I can handle with a guard in this manner or do I need a helper macro of some sort? Thanks! 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/D76D1CBC-BF78-493F-89B9-9498D615A5E7%40gmail.com. For more options, visit https://groups.google.com/d/optout.