Re: Lisp Syntax - functions versus data
- From: Zach Beane <xach@xxxxxxxx>
- Date: 28 Feb 2007 08:04:59 -0500
Vassil Nikolov <vnikolov+usenet@xxxxxxxxx> writes:
The usual approach is to use WHEN or UNLESS when evaluating for side
effect; if the returned value will be used, IF is in order with both a
"then" and an "else" expression.
I often start off predicates with something like this:
(defun foostringp (string)
(when (and (stringp string)
(= (length string) 20))
...))
Zach
.
- References:
- Lisp Syntax - functions versus data
- From: S. Robert James
- Re: Lisp Syntax - functions versus data
- From: André Thieme
- Re: Lisp Syntax - functions versus data
- From: Vassil Nikolov
- Lisp Syntax - functions versus data
- Prev by Date: Re: A style question
- Next by Date: Re: A style question
- Previous by thread: Re: Lisp Syntax - functions versus data
- Next by thread: Re: Lisp Syntax - functions versus data
- Index(es):