From: Software Scavenger
Subject: (let (flet (multiple-value-bind (etc.))))
Date: 
Message-ID: <a6789134.0112290618.3f22229a@posting.google.com>
I'm wondering about a more powerful version of let, to combine the
functionality of let, flet, multiple-value-bind, etc.  It seems like
it would be nice to be able to unfold the bindings into one long form
instead of deeply nesting them.  Does such a beast already lurk in
some dark corner of the universe, waiting for unwary adventurers to
discover it, or is this something I would have to create from scratch
to experiment with it?

From: Thomas F. Burdick
Subject: Re: (let (flet (multiple-value-bind (etc.))))
Date: 
Message-ID: <xcvg05tlurm.fsf@famine.OCF.Berkeley.EDU>
··········@mailandnews.com (Software Scavenger) writes:

> I'm wondering about a more powerful version of let, to combine the
> functionality of let, flet, multiple-value-bind, etc.  It seems like
> it would be nice to be able to unfold the bindings into one long form
> instead of deeply nesting them.  Does such a beast already lurk in
> some dark corner of the universe, waiting for unwary adventurers to
> discover it, or is this something I would have to create from scratch
> to experiment with it?

How on earth would you propose the syntax of such a horror to work?
The most reasonable syntax I can think of is:

  (�et* ((a (foo))
         (#'b (x) (* x a))
         (c (b (bar)))
         ((values d d?) (gethash c *hash*)))
    ...)

But that is disgusting!  Maybe a multiple-value-let, like:

  (mv-let* ((a (foo))
            (b (bar a))
            ((c c?) (gethash b *hash*)))
    ...)

would be useful and readable.  Honestly, it's a very rare event when I
have to nest at all deeply because of switching between let, flet, and
m-v-bind.  In those cases (you're probably not going to like my
solution :) I just make my Emacs frame really big.  My lines aren't
any longer than normal, they just start significantly to the right of
normal.  Eww, to get either of these to work, your macro will have to
completely parse declarations so it can stick them to the correct
form.

-- 
           /|_     .-----------------------.                        
         ,'  .\  / | No to Imperialist war |                        
     ,--'    _,'   | Wage class war!       |                        
    /       /      `-----------------------'                        
   (   -.  |                               
   |     ) |                               
  (`-.  '--.)                              
   `. )----'                               
From: Lieven Marchand
Subject: Re: (let (flet (multiple-value-bind (etc.))))
Date: 
Message-ID: <m34rm96f0f.fsf@localhost.localdomain>
··········@mailandnews.com (Software Scavenger) writes:

> I'm wondering about a more powerful version of let, to combine the
> functionality of let, flet, multiple-value-bind, etc.  It seems like
> it would be nice to be able to unfold the bindings into one long form
> instead of deeply nesting them.  Does such a beast already lurk in
> some dark corner of the universe, waiting for unwary adventurers to
> discover it, or is this something I would have to create from scratch
> to experiment with it?

It comes up fairly often in c.l.l. Google for LETBIND and friends.

-- 
Lieven Marchand <···@wyrd.be>
She says, "Honey, you're a Bastard of great proportion."
He says, "Darling, I plead guilty to that sin."
Cowboy Junkies -- A few simple words
From: Erik Naggum
Subject: Re: (let (flet (multiple-value-bind (etc.))))
Date: 
Message-ID: <3218648410165199@naggum.net>
* ··········@mailandnews.com (Software Scavenger)
| I'm wondering about a more powerful version of let, to combine the
| functionality of let, flet, multiple-value-bind, etc.

  There are about as many of these as there are Scheme implementations.
  However useful they seem before you start to write it, it is quickly
  abandoned because in fact it is not particularly useful -- instead of
  being written once and for all, you tinker with it so much there is never
  any actual savings, especially since every Common Lisp programmer you
  might want to share code with has his own version of such a macro.

///
-- 
  The past is not more important than the future, despite what your culture
  has taught you.  Your future observations, conclusions, and beliefs are
  more important to you than those in your past ever will be.  The world is
  changing so fast the balance between the past and the future has shifted.