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: RnRS/Guile multi-let binding?


On 23 Sep 1999, Jim Blandy wrote:

> 
> > Is there any standard way to do a binding like this:
> > 
> > (multi-let ((label action image-left)
> >             (menu-item-properties menuitem))
> >      ... code using bindings of label action image-left ...
> > 
> > I know this is easy to do (using rewrite to lambda where the actual args
> > are the second list of elements), but is there some standard technique
> > or module?  It comes up a lot when decomposing lists and trying to write
> > readable Scheme code.
> 
> Somebody whose name escapes me did a nice pattern-matching package for
> Scheme.  I want to snarf it for Guile; pattern matching is so nice.
> 
   Dan Friedman + students wrote a nice little pattern matcher, but I
don't know what the license status of it is.  It should work with any R^5
scheme.  We used it to write a simple Scheme compiler.

Lynn



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