[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Carl Hoffman <CWH@SCRC-QUABBIN.ARPA>
- Subject: &whole
- From: "Scott E. Fahlman" <Fahlman@CMU-CS-C.ARPA>
- Date: Fri, 07 Sep 1984 18:03:00 -0000
- Cc: Common-Lisp@SU-AI.ARPA
- In-reply-to: Msg of 6 Sep 1984 22:23-EDT from Carl Hoffman <CWH at SCRC-QUABBIN.ARPA>
- Sender: FAHLMAN@CMU-CS-C.ARPA
I'm sure I've found times when not having the error-checking has been useful.
For instance, suppose I have a long (or circular) list of triples.
I might want to destructure the first two entries of that list like so.
(DO () (NIL)
(DESTRUCTURING-BIND ((A1 B1 C1) (A2 B2 C2)) LIST ...)
(SETQ LIST (CDDR LIST)))
But you can inhibit the error checking by putting an "&rest ignore" in
there, and then you don't have to make a special non-error checking
version. Isn't this exactly analogous to the discussion we just had
about &whole ?