Re: The pervasiveness of DEFVAR and the Lisp curse
- From: rpw3@xxxxxxxx (Rob Warnock)
- Date: Thu, 28 Apr 2011 22:23:10 -0500
RG <rNOSPAMon@xxxxxxxxxxx> wrote:
+---------------
| "Pascal J. Bourguignon" <pjb@xxxxxxxxxxxxxxxxx> wrote:
| > Rather, I'd tend to tell newbies that they should not use global
| > variables anyways.
|
| That's generally good advice. But Lisp prides itself as a language for
| exploratory programming. When doing exploratory programming one often
| generates intermediate results interactively that one wishes to retain
| for later use. The most common and convenient way to do that is by
| binding (or assigning) the result to a global variable.
+---------------
I completely agree with this latter point, which is why all of my
CL init files load my DEFLEX macro:
http://rpw3.org/hacks/lisp/deflex.lisp
Note that I have no particular attachment to *my* implementation
of DEFLEX, but at this point I would assume that nearly every
serious CL programmer uses *some* implementation of DEFLEX or
DEFLEXICAL or DEFGLOBAL [assuming it's lexical] or whatever.
-Rob
-----
Rob Warnock <rpw3@xxxxxxxx>
627 26th Avenue <http://rpw3.org/>
San Mateo, CA 94403
.
- Follow-Ups:
- Re: The pervasiveness of DEFVAR and the Lisp curse
- From: Joshua Taylor
- Re: The pervasiveness of DEFVAR and the Lisp curse
- From: Pascal J. Bourguignon
- Re: The pervasiveness of DEFVAR and the Lisp curse
- From: Björn Lindberg
- Re: The pervasiveness of DEFVAR and the Lisp curse
- From: Didier Verna
- Re: The pervasiveness of DEFVAR and the Lisp curse
- From: RG
- Re: The pervasiveness of DEFVAR and the Lisp curse
- References:
- flet vars
- From: TheFlyingDutchman
- Re: The pervasiveness of DEFVAR and the Lisp curse
- From: RG
- Re: The pervasiveness of DEFVAR and the Lisp curse
- From: RG
- flet vars
- Prev by Date: Re: The Lisp Curse
- Next by Date: Re: The Lisp Curse
- Previous by thread: Re: The pervasiveness of DEFVAR and the Lisp curse
- Next by thread: Re: The pervasiveness of DEFVAR and the Lisp curse
- Index(es):
Relevant Pages
|