Looks good to me!
On Monday, April 29, 2019 at 9:06:53 PM UTC+2, wanderley...@gmail.com wrote:
> [(_ name (~var e element-exp) ...)
>
Here you can replace the `~var` call with the more classic form
`e:element-exp`.
`~var` is only required when you want to pass arguments to the class
(whic
Hi Jérôme, `syntax-parse` was in my list to explore! Thanks for the
example! I did a new version following your example
(require
(for-syntax
racket/base
racket/syntax
syntax/parse))
(begin-for-syntax
(define-syntax-class (element-exp)
(pattern (element:id value)
#:with
Hello there!
I'm really glad you're picking up Racket and enjoying it!
I've been through the same paths and struggles before, so thank you very
much for posting that piece of
experience here :)
For your information, here is a syntax-parse version of your macro, which I
find simpler to write an
3 matches
Mail list logo