Nested quasiquotes Marc Nieper-Wißkirchen (31 Aug 2020 09:43 UTC)
Re: Nested quasiquotes Panicz Maciej Godek (31 Aug 2020 09:52 UTC)
Re: Nested quasiquotes Marc Nieper-Wißkirchen (31 Aug 2020 10:00 UTC)
Re: Nested quasiquotes Marc Nieper-Wißkirchen (01 Sep 2020 06:59 UTC)
(missing)
(missing)
Fwd: Nested quasiquotes Marc Nieper-Wißkirchen (01 Sep 2020 09:32 UTC)
Re: Nested quasiquotes Felix Thibault (13 Sep 2020 12:57 UTC)
Re: Nested quasiquotes Marc Nieper-Wißkirchen (13 Sep 2020 13:14 UTC)
Re: Nested quasiquotes Felix Thibault (13 Sep 2020 13:27 UTC)
Re: Nested quasiquotes Marc Nieper-Wißkirchen (13 Sep 2020 13:42 UTC)

Re: Nested quasiquotes Marc Nieper-Wißkirchen 13 Sep 2020 13:13 UTC

Am So., 13. Sept. 2020 um 14:57 Uhr schrieb Felix Thibault
<xxxxxx@gmail.com>:

> This is one area of Scheme I am still learning about. If the expression is ``,x I get matches from the patterns

The expression ``,x evaluates to the datum (quasiquote (unquote x)).

> (quote (quasi-quote (unquote x))) ['`,x] and

This pattern asks for a literal match to (quasiquote (unquote x)), so
it succeeds.

> (quasi-quote (unquote (quasi-quote (unquote x)))) [`,`,x]

If the quasiquote syntax of the pattern matcher works as the
quasiquote special for of the RnRS (which isn't yet documented in SRFI
204), (quasiquote (unquote ...)) is equivalent to .... So your pattern
is equivalent to the pattern variable (!) x, which, of course, matches
the datum (quasiquote (unquote x)).

Does this explanation help? (And were you actually looking for it?)

Marc