I'm trying to write a macro that where the pre-transformation form is:
(==> exp1 exp2 ... expn)
and where exp2 through expression expn are sexps that contain a '_'
placeholder. The idea is that starting with exp2, the _ gets replaced with
the previous expression. For example:
(==> 12 (+ _ 2) (
On Sun, Feb 12, 2012 at 1:34 PM, Richard Cleis wrote:
> The DrRacket interactions window replies with 48, not an error, when your
> syntax is defined in the definitions window, your function is defined in
> the interactions area, and the example is finally run in the interactions
> area.
>
> How
>
> In the example that doesn't work, the first mult is needed for another use
> of ==>. In the simpler examples, it is not. Notice that the orphaned mult
> occurs on the second step when another use is expanded, while in the
> simpler examples another use of ==> does not occur. In the simple case
3 matches
Mail list logo