Re: [racket-users] Macro confusion with syntax-parse

2017-10-20 Thread Philip McGrath
Using `~literal` matches by binding, so when `add` is bound by a user's program (shadowing the binding `provide`d from your `calc` module), it no longer matches. You can use `~datum` instead to match `add` symbolically — if you do that in combination with providing an error-raising macro for

[racket-users] Macro confusion with syntax-parse

2017-10-20 Thread Nadeem Abdul Hamid
I'm working on a macro that I'd like to work similar to the 'big-bang' macro of 2htdp/universe with its various clauses, but something's going on that I don't understand. At the bottom of this email is some code for a very simple macro, 'calc', that is not what I'm working on, but exhibits the