[racket] to local or not to local
From: Stefan Schmiedl (s at xss.de)
Date: Mon Jan 3 11:31:27 EST 2011 |
|
Hi.
In the web-server related documentation, I see the preferred way to
create local procedures as
(define (start request)
(local ((define (response-generator...))
(define (some-handler...)))
(do-something-with-these)))
Another way to create local procedures is
(define (start request)
(define (response-generator...))
(define (some-handler...))
(do-something-with-these)))
Is there some (subtle?) difference between these approaches?
Which way is appropriate in what conditions?
Thanks,
s.