[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Macro for replacing a placeholder in an expression
From: |
Maxime Devos |
Subject: |
Re: Macro for replacing a placeholder in an expression |
Date: |
Sat, 30 Jul 2022 23:13:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
On 30-07-2022 17:42, Zelphir Kaltstahl wrote:
Does this mean, that recursive application of a macro inside a macro
is impossible? To expand to subforms being the same macro again and
this way transform a whole tree of s-expressions?
You can have recursive macros, see e.g. the let^ macro at
<https://git.gnunet.org/gnunet-scheme.git/tree/gnu/gnunet/utils/hat-let.scm>.
However, I do not see a way to implement recursivity the same way for
your macro.
Greetings,
Maxime.
OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
Re: Macro for replacing a placeholder in an expression, Maxime Devos, 2022/07/27