|
From: | Sunnan |
Subject: | Re: [Chicken-users] Re: Style Guide |
Date: | Mon, 05 Nov 2007 17:42:03 +0100 |
User-agent: | Thunderbird 2.0.0.6 (X11/20071022) |
Mark Fredrickson wrote:
Here's a related question for more experienced Schemers: In Dybvig, he states that the define form: (define square (lambda (x) (* x x))) is to be preferred to (define (square x) (* x x)) After reading that, I started using the first form religiously. Now I'm not so sure. For no small part because the text editor I use (TextMate) doesn't highlight the first form as a function definition but does highlight the second form.
The second form. Shorter is better. Always, always, always. Sunnan
[Prev in Thread] | Current Thread | [Next in Thread] |