[alexandria-devel] Re: Review cycle 1: binding constructs

Nikodemus Siivola nikodemus at random-state.net
Sat May 31 13:53:12 UTC 2008


On Sat, May 31, 2008 at 4:09 PM, Attila Lendvai
<attila.lendvai at gmail.com> wrote:

> my 0.02 about short-circuiting: when using a conditional form (like
> when-let), people should be prepared for some of their code not being
> evaluated. and you should try to stay sideffect-free anyway, so i vote
> for short-circuiting.

What would the semantics of IF-LET* be, or should it be then exciced,
and short-circuiting left for WHEN-LET*?

That is, would

  (if-let* ((foo (foo))
            (bar (bar)))
      (foobar foo bar)
      (progn
        (bar (ensure-bar))
        (foobar foo bar)))

be legal?

Cheers,

 -- Nikodemus



More information about the alexandria-devel mailing list