[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UNLESS -- or something like it.



 Franz Lisp has an 'if' macro which does what you want.
 For example:
  (if val thenret else (do-it)) ==> (cond (val)
  					  (t (do-it)))

 There are other form too, such as:
 
  (if a
     then b
   elseif c
     thenret
     else d)

  is  (cond ((a b))
	    (c)
	    (t d))

  
 I've always thought that the 'if' macro without keywords is far worse
visually than the cond it expands into.  For compatiblity, the Franz
if macro does handle the non-keyword cases (with the obvious exceptions).