> An *internal* definition differs slightly from a local definition
> in syntax and *semantics*: 
>
> (define (foo x)
>   (define i 10)
>   (define j 12)
>   (+ i j x))
>
> It's preferable to local defines for aesthetic reasons because it 
> consumes less horizontal space (a smaller indentation). 

On the other hand, the ~corresponding let form shows very clearly the
scope of the newly-bound identifiers (and most editors make it very easy
to highlight the whole let form in one swoop), which I've found useful
in explaining lexical scope.

But you've taught a heck of a lot more people to scheme than I have...

-- 
                                Jim Wise
                                [email protected]

Attachment: pgp44Wsi85yq1.pgp
Description: PGP signature

_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to