[alexandria-devel] Fwd: PROG1-LET

Nikodemus Siivola nikodemus at random-state.net
Mon Oct 27 21:32:22 UTC 2008


Oops, missed the list.

---------- Forwarded message ----------
From: Nikodemus Siivola <nikodemus at random-state.net>
Date: Mon, Oct 27, 2008 at 11:32 PM
Subject: Re: [alexandria-devel] PROG1-LET
To: "Tobias C. Rittweiler" <tcr at freebits.de>


On Mon, Oct 27, 2008 at 9:52 PM, Tobias C. Rittweiler <tcr at freebits.de> wrote:

> I know from experience that this scheme comes up occasionally, but I
> think it's an abuse of macros. It's purely a syntactic abbreviation that
> does neither save much typing nor does the name improve readability.

I'm inclined to agree:

 (PROG1-LET (X (FOO))
  (BAR X)
  (QUUX X))

is easily taken to mean

 (LET ((X (FOO)))
  (PROG1
      (BAR X)
    (QUUX X)))

(Well, I'm not sure about abuse part, but readability seems to suffer.)

Cheers,

 -- Nikodemus




More information about the alexandria-devel mailing list