Subject: Re: `while' in Lisp? + loop vs do?
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1999/10/23
Newsgroups: comp.lang.lisp
Message-ID: <7ur8te$6vo2e@fido.engr.sgi.com>
Christopher Browne <cbbrowne@hex.net> wrote:
+---------------
| just because I can write:
| 
| (DEFUN DO-SOMETHING-SILLY (LIST)
|        (LIST (CDR LIST) 'SHORTENED-BY-ONE))
| 
| thereby using LIST for several things, does not mean that this is
| actually a wise idea.
| 
| (DEFUN DO-SOMETHING-SILLY (LST)
|        (LIST (CDR LST) 'SHORTENED-BY-ONE))
| is probably slightly easier to grok.
+---------------

Even better, to my taste, is something like this:

  (DEFUN DO-SOMETHING-SILLY (SILLIES)
    (LIST (CDR SILLIES) 'SHORTENED-BY-ONE))

I also tend to avoid names like "NUMBER", "CHAR", "VECTOR", etc.


-Rob

-----
Rob Warnock, 8L-846		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		FAX: 650-933-0511
Mountain View, CA  94043	PP-ASEL-IA