pro@common-lisp.net

2011-06-12 Thread Ala'a Mohammad
On Sun, Jun 12, 2011 at 7:08 PM, Faré wrote: > Also, binding forms are annoying in that they are verbose > and move the body to the right as you nest them. > Instead of any ad-hoc do-it-all binding macro, > I like this macro from Marco Baringer that does nesting for you: > > (defmacro with-nesting

pro@common-lisp.net

2011-06-12 Thread Gary King
Hi Scott, > In case anyone's interested, it's at > http://common-lisp.net/project/misc-extensions/ > > In the spirit of tooting my own horn, you might also want to see metabang-bind (http://common-lisp.net/project/metabang-bind). -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (

pro@common-lisp.net

2011-06-12 Thread Scott L. Burson
On Sun, Jun 12, 2011 at 1:17 PM, Gary King wrote: > In the spirit of tooting my own horn, you might also want to see > metabang-bind (http://common-lisp.net/project/metabang-bind). I'm aware of it, thanks. I'm afraid I'm quite attached to my own LET macro, of which I wrote the first version in

pro@common-lisp.net

2011-06-12 Thread Scott L. Burson
On Sun, Jun 12, 2011 at 7:00 AM, Daniel Weinreb wrote: > I, myself, really dislike &aux. > > I don't even like > > (let (a b c) ...) Agreed on both counts. &aux is just gross. Like LOOP :-) As for read-only variables -- yes, it would have been nice if Lisp had used ML-style references(*) from

pro@common-lisp.net

2011-06-12 Thread Steve Haflich
What I dislike about &aux is that it encourages scoping a lexical variable around the entire lambda body. I prefer whenever possible to scope a local variable over the smallest region in which it is referenced. While this adds more let forms to the code, it makes the code easier to read. One know

pro@common-lisp.net

2011-06-12 Thread Faré
On 12 June 2011 10:00, Daniel Weinreb wrote: > I, myself, really dislike &aux.  It has been so long > since I have seen it that I have forgotten that > it even exists.  We never use it; and I should > add that to our style guide. > &aux has its uses. Sometimes it can be clearer than adding a let.

pro@common-lisp.net

2011-06-12 Thread Daniel Weinreb
I, myself, really dislike &aux. It has been so long since I have seen it that I have forgotten that it even exists. We never use it; and I should add that to our style guide. I don't even like (let (a b c) ...) since I prefer to think of "let" in the Scheme sense of "I am naming the result of