On Sat, Dec 8, 2012 at 5:23 AM, Kassen <[email protected]> wrote: > On 6 December 2012 17:11, Sam Tobin-Hochstadt <[email protected]> wrote: >> >> Actually, the Racket community has been moving more towards so-called >> "internal define" style as the general rule, instead of using `let`. >> >> Here's an (unofficial) style guide that discusses it: >> http://www.ccs.neu.edu/home/matthias/Style/style/Choosing_the_Right_Construct.html#%28part._.Definitions%29 > > Thank you! > > I see the reasoning they use, but when they move on to "cond" I'm > missing any discussion of "when", which I use a lot because it's > simple. I'm not so sure about avoiding lambda either, especially as > using the Greek letter saves typing :-). The for/list stuff on the > other hand is really nice.
Certainly `when` is a good idea -- `cond` is mostly opposed to `if` in that section. As for avoiding `lambda`, mostly that's when a named function would work better. Sam
