[alexandria-devel] [PATCH] PROG1-LET

Nikodemus Siivola nikodemus at random-state.net
Tue Apr 10 19:32:16 UTC 2012


On 10 April 2012 21:42, Benjamin Saunders <ralith at gmail.com> wrote:

> Though I'm no judge of classicality, judging from the response on this
> list the anaphoric form, aprog1, is fairly well known and used. It

Despite having written ANAPHORA, I actually never use anything but
AWHEN, and very rarely AIF -- and even those only in codebases where
they pre-exist. I don't find them terrible an bad, but I don't really
like them.

That said,

 (aprog1 (foo)
   (bar it))

is pretty unambiguous. It's clear what is being returned, and that is
also the only thing that makes sense as the value of IT. I don't find
this to be true for PROG1-LET.

> seems a bit unwieldly. Do any superior names occur to you?

No, sorry. If I had one up my sleeve I would have owned up. :)

  LET-RETURN begs the question which block it is going to return from.

  LET-VALUES historically and typically refers to something that
expands into MULTIPLE-VALUE-BIND.

Nothing obvious occurs to me. Meh, names are /hard/, I'll make some
tea instead. :)

Cheers,

 -- Nikodemus




More information about the alexandria-devel mailing list