Re: [racket-users] syntax-parse #:with and error messages

2016-09-29 Thread 'William J. Bowman' via Racket Users
On Thu, Sep 29, 2016 at 04:06:21PM -0400, 'William J. Bowman' via Racket Users wrote: > being printed as #%app, and only now understand (thanks Alex!) what's really > going on here. Correction: Thanks Alex*is*. -- William J. Bowman -- You received this message because you are subscribed to

Re: [racket-users] syntax-parse #:with and error messages

2016-09-29 Thread 'William J. Bowman' via Racket Users
On Thu, Sep 29, 2016 at 12:23:16PM -0400, Ryan Culpepper wrote: > > ; /tmp/test.rkt:29.0: my-let: expected the identifier `begin' > > ; at: quote > > ; in: (my-let ((x 5)) x) > > ; Context: > > ... > The `quote` is coming from the local expansion: ... > Meanwhile, you can also fall

Re: [racket-users] syntax-parse #:with and error messages

2016-09-29 Thread Ryan Culpepper
On 09/28/2016 02:33 PM, 'William J. Bowman' via Racket Users wrote: I recently ran into a problem that took me hours to diagnose. It turns out that a `#:with` clause in a syntax-parse was not matching, but I would never have guessed that from the error message I got. Here is a simplified

[racket-users] syntax-parse #:with and error messages

2016-09-28 Thread 'William J. Bowman' via Racket Users
I recently ran into a problem that took me hours to diagnose. It turns out that a `#:with` clause in a syntax-parse was not matching, but I would never have guessed that from the error message I got. Here is a simplified example: (define-syntax-rule (my-fancy-macro syn ...) (begin syn ...))