Re: [racket] to local or not to local

2011-01-03 Thread Stefan Schmiedl
On Mon, 3 Jan 2011 12:20:51 -0500 Matthias Felleisen wrote: > > On Jan 3, 2011, at 12:18 PM, Stefan Schmiedl wrote: > > > Is there a coding style guideline for racket? A place where > > questions like this one are answered already? > > > I have had five pages for two months now ... Next time

Re: [racket] to local or not to local

2011-01-03 Thread Matthias Felleisen
On Jan 3, 2011, at 12:18 PM, Stefan Schmiedl wrote: > Is there a coding style guideline for racket? A place where > questions like this one are answered already? I have had five pages for two months now ... Next time I come up for air I'll air it on 'dev' _

Re: [racket] to local or not to local

2011-01-03 Thread Stefan Schmiedl
On Mon, 3 Jan 2011 11:33:19 -0500 Matthias Felleisen wrote: > There is. An experienced programmer (*) should go with the second form. > > (*) someone who can handle error messages and subtle changes to them. hehe ... sounds like a challenge :-) I'll be a good boy then, and use local from now

Re: [racket] to local or not to local

2011-01-03 Thread Robby Findler
FWIW, there have been some (somewhat) recent changes to the way internal definitions work that make them behave much better. In particular, if you have a bunch of internal definitions with expressions interspersed, then they all go in the same (recursive) scope. Robby On Mon, Jan 3, 2011 at 10:33

Re: [racket] to local or not to local

2011-01-03 Thread Matthias Felleisen
On Jan 3, 2011, at 11:31 AM, Stefan Schmiedl wrote: > 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