Re: Lisp Syntax - functions versus data



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
.