The name `with-quasisyntax` is not very good, because it is not simply a
quasi version of `with-syntax`. The most interesting part is that it calls
`eval-syntax` up front. The result feels like a "universal macro" -- it can
be used to implement both foo->assoc and assoc->foo which look like they
would traditionally need separate macros (or one large macro that handles
both).

I am noticing that this use of `eval-syntax` can cause error messages to be
less good, but I still think it's OK for "private" code.

On Fri, Aug 13, 2021 at 2:45 PM D. Ben Knoble <[email protected]> wrote:

> Ah, I'm now seeing that with-quasi implicitly #`s the body; I believe with
> syntax-parse, #:with, and #' + template vars + #` when needed you might be
> ok.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Racket Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/racket-users/61cQImHJfZI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/2ede4034-80ec-49ad-9782-8883f8d47085n%40googlegroups.com
> <https://groups.google.com/d/msgid/racket-users/2ede4034-80ec-49ad-9782-8883f8d47085n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAJYF1yu4FsOowfbfV%3DP%3D_fZHzJCAtgK8SNBb4nSNQmF1A%3DfvxA%40mail.gmail.com.

Reply via email to