preliminary comments Peter McGoron (31 Aug 2026 13:12 UTC)
Re: preliminary comments Hernán Ibarra Mejia (01 Sep 2026 09:37 UTC)
Re: preliminary comments Peter McGoron (01 Sep 2026 11:10 UTC)
Re: preliminary comments Hernán Ibarra Mejia (02 Sep 2026 14:47 UTC)
Re: preliminary comments Peter McGoron (02 Sep 2026 15:18 UTC)
Re: preliminary comments Peter McGoron (01 Sep 2026 18:28 UTC)
Re: preliminary comments Hernán Ibarra Mejia (02 Sep 2026 15:14 UTC)
Re: preliminary comments Marc Nieper-Wißkirchen (03 Sep 2026 08:48 UTC)

Re: preliminary comments Peter McGoron 01 Sep 2026 18:24 UTC

I think `let*/m` would be better than `let/m` in that case. The thing
about `define` that trips me up is that it normally defines a set of
mutually recursive expressions:

     (lambda (n)
       (define (even? n)
         (or (zero? n) (odd? (- n 1))))
       (define (odd? n)
         (and (not (zero? n))
              (even? (- n 1))))
       (write (even? n))
       (newline))

It is also not allowed in R6RS for a body with `define` to `define` the
same variable more than once.

-- Peter McGoron

On 9/1/26 05:37, Hernán Ibarra Mejia wrote:
> `define/m` binds a
> variable in subsequent expressions, rather than in a new enclosing scope like a
> `let` would do.