Re: delete command weirdness
- From: Kent M Pitman <pitman@xxxxxxxxxxx>
- Date: 15 May 2008 19:18:21 -0400
pjb@xxxxxxxxxxxxxxxxx (Pascal J. Bourguignon) writes:
If you go this way, ALL the lisp operators (that take arguments) may
take actually the value of a variable, and the result may be stored
into that same variable, so they should all be defined as place
modifying macros:
(deletef item list) for (setf list (delete item list))
Just for historical completeness, DELETEF was the Maclisp name for
DELETE-FILE. This is tickling a vague memory that there was a discussion
of adding a DELETEF as a SETF variant and having people say "maybe not".
Enough years have passed that this is probably not a fear any more.
But on the LispM, with both the old Maclisp names and the new CL names
active in the same environment (differing only by package) you can see
the fear it would lead to in designers not wanting to lead people down
the path to accidental file deletion.
.
- Follow-Ups:
- Re: delete command weirdness
- From: Pascal J. Bourguignon
- Re: delete command weirdness
- References:
- delete command weirdness
- From: Nathaniel Calloway
- Re: delete command weirdness
- From: Ken Tilton
- Re: delete command weirdness
- From: Nathaniel Calloway
- Re: delete command weirdness
- From: Barry Margolin
- Re: delete command weirdness
- From: Nathaniel Calloway
- Re: delete command weirdness
- From: Don Geddis
- Re: delete command weirdness
- From: Pascal J. Bourguignon
- delete command weirdness
- Prev by Date: Re: walk through list and add all n'th item
- Next by Date: Re: division with rest?
- Previous by thread: Re: delete command weirdness
- Next by thread: Re: delete command weirdness
- Index(es):