> FWIW, Eric Dobson wrote a very nice `define-literal-syntax-class` macro > that is used extensively inside TR. > > > https://github.com/racket/typed-racket/blob/master/typed-racket-lib/typed-racket/utils/literal-syntax-class.rkt >
Hmm... I can't quite figure that one out. Maybe with some examples? How does the ":spec" in the pattern work? It's just a class specified.... The examples in TR seem to declare classes one literal at a time? > Its companion `define-merged-syntax-class` is quite nice too. > > > https://github.com/racket/typed-racket/blob/master/typed-racket-lib/typed-racket/optimizer/utils.rkt#L110 > I was just looking for exactly that... very useful. -- 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. For more options, visit https://groups.google.com/d/optout.