This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: RnRS/Guile multi-let binding?
- To: Greg Badros <gjb at cs dot washington dot edu>
- Subject: Re: RnRS/Guile multi-let binding?
- From: Jim Blandy <jimb at red-bean dot com>
- Date: 23 Sep 1999 18:10:33 -0500
- Cc: guile at sourceware dot cygnus dot com
- References: <qrrhfkl49bn.fsf@elwha.cs.washington.edu>
> 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.