[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New special form suggestion: LET-CONSTANT
- To: common-lisp@sail.stanford.edu
- Subject: Re: New special form suggestion: LET-CONSTANT
- From: <samalone@ATHENA.MIT.EDU>
- Date: Mon, 03 Aug 87 12:28:38 EDT
- In-reply-to: Your message of Mon, 03 Aug 87 12:07:00 -0400. <870803120736.7.BARMAR@NIETZSCHE.THINK.COM>
It seems like a LET-CONSTANT special form, or an &CONSTANT
lambda-list keyword, would be the right thing for this.
LET-CONSTANT would be to DEFPARAMETER what FLET is to DEFUN,
and &CONSTANT would be analogous to &AUX.
As an alternative, I recommend a CONSTANT declaration. DEFCONSTANT could then
be defined in terms of (PROCLAIM '(CONSTANT variable)). The statement
(PROCLAIM '(DECLARATION CONSTANT)) would provide compatibility with
implementations that don't support the declaration.
--Stuart A. Malone