[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Common Lisp "let"

> 	(define (isletter char)
> 	  (let ((dcchar (downcase char)))
> 		...))

PLT Scheme has the nice property of allowing [] and {} as synonyms for
(), which reduces the primary detraction of redundancy: lots of stacked
parens can be hard to read.  A simple (nonsensical) example shows how
[] for cond/let pairs and {} for quoted expressions can make code more

(define (foo char)
   (let ([dcchar     (downcase char)])
         [x          (upcase char)])

     `{lambda {y} ,(bar x 3) {baz y ,dcchar}})


Morgan McGuire  

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup