> On Dec 30, 2018, at 8:41 PM, Jonathan Simpson <jjsim...@gmail.com> wrote: > > I'm doing #1, so I think #2 is the explanation. 'type' is a function > available in expander.rkt so the literal will only match that binding. The > same is true for 'offset'. Both need to be provided. 'test' is not bound to > anything because the macro uses 'compare' as the equivalent function, so > 'compare' doesn't need to be provided. > > So I think it all makes sense. Thank you.
PS. This behavior with literals in syntax patterns is specific to `syntax-rules` and `syntax-case`. If you switch to `syntax-parse`, you can use its `#:datum-literals` option or its `~datum` pattern form to match raw datums without bindings. -- 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.