This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: RnRS/Guile multi-let binding?
- To: Jim Blandy <jimb at red-bean dot com>
- Subject: Re: RnRS/Guile multi-let binding?
- From: Lynn Winebarger <owinebar at free-expression dot org>
- Date: Thu, 23 Sep 1999 18:52:20 -0500 (EST)
- cc: Greg Badros <gjb at cs dot washington dot edu>, guile at sourceware dot cygnus dot com
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