This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: why undefined return values?


Ken Anderson <kanderso@bbn.com> writes:

> I have no problem with nesting let and and:
> 
> (let ((eof (eof)))
>   (and (not eof) 
>        (let ((match (find-match regexp)))
> 	 (and match
> 	      (let ((str (car match)))
> 		...)))))
> 
> However, it can certainly get tedious if needed a lot.  Paul Graham's book On Lisp defines a macro, (aif) i think to support variations on this.  In fact, the book has 13 chapters on macros.

(use-modules (ice-9 and-let*))

:)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]