On Mon, May 27, 2019 at 7:54 PM Greg Hendershott <rac...@greghendershott.com>
wrote:

> p.s. That (datum->syntax _ (string->symbol (syntax->datum _))) triplet
> has an equivalent handy shortcut -- `format-id`:
>
>   (format-id #'magic-name "~a" #'magic-name)


 This doesn't work in the string literal case because an argument of
`format-id` must be an identifier (or symbol, or string, but not a syntax
object of a string literal).

On Mon, May 27, 2019 at 10:45 PM Alexis King <lexi.lam...@gmail.com> wrote:

> As a final note, `syntax-parse`’s `#:with` form is slightly different from
> `with-syntax` in this respect, as it really will use `(datum->syntax #f
> ....)` instead of trying to guess at what scopes you might have wanted.
>

Aha! I didn't understand why sometimes `with-syntax` works while `#:with`
doesn't until now. Thanks so much for this.


> --
> 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 racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/49B6B0B9-1D03-4E66-B5C1-C70C45A22235%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CADcueguBNLS_a-5vdDnh%3D%3DwQkazpipvfSEg-XuZqQA-8Ytystg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to