Re: [racket-users] Trying to build 'routing' macro for dispatch-rules

2016-10-29 Thread Jay McCarthy
Hi David, The syntax of `dispatch-rules` is that its arguments are dispatch clauses, not expressions, and it does not implement its own macro system (like `match` does.) You should either change `dispatch-rules` to do that by adding "dispatch-rules-expanders" or make your own macro to expand

[racket-users] Trying to build 'routing' macro for dispatch-rules

2016-10-28 Thread David Storrs
I'm trying to build a macro that will generate routing rules for 'dispatch-rules'. (dispatch-rules) from web-server/dispatch has this form: (dispatch-rules (("announce-user") #:method post process-announce-user)) ...more routes here... ) This seems like it should be automatable, so I