[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Named lambdas
- To: Common-Lisp at SU-AI
- Subject: Re: Named lambdas
- From: David A. Moon <Moon at SCRC-TENEX at MIT-MC>
- Date: Sat, 13 Nov 1982 22:11:00 -0000
- In-reply-to: The message of 13 Nov 82 13:40-EST from JONL at PARC-MAXC
Date: 13 NOV 1982 1040-PST
From: JONL at PARC-MAXC
Why not eliminate another proliferation of mindless
primitives, NAMED-LAMBDA, and just have DEFUN etc insert
a "commentary" in a local declaration.
This is a good idea, provided that there is a primitive defined to
extract the name buried in the declaration buried in the lambda. It's
called SYS:FUNCTION-NAME in the Lisp machine; no really strong reason
why it isn't global.
If the Lisp machine LOCAL-DECLARATIONS mechanism were adopted, this would
also answer the other request for a way for macros to find out what function
they were inside, since they would do (CADR (ASSQ 'NAME LOCAL-DECLARATIONS)),
mutatis mutandis.