Re: Maybe macros Marc Nieper-Wißkirchen 29 Jun 2020 06:23 UTC

Am Mo., 29. Juni 2020 um 02:02 Uhr schrieb Alex Shinn <xxxxxx@gmail.com>:

> Real life, yes, though of debatable style.  I've written code with long chains of `let*` where I may throw in things like `set!` or more often `write` for debugging :
>
> (let* ((a (foo))
>       (_ (write `(a: ,a)))
>       (b (bar))
>      ...
>       )
>  ...)
>
> I'm not proud.

I've written code like this as well. But, being debugging code, this
can be easily adapted to

(let* ((a (foo))
        (_ (begin (write `(a: ,a)) #f))
        (b (bar))
        ...
       )
  ...)

(Unless you want to use let*-values everywhere.)