On Tuesday, October 20, 2015 at 11:56:33 AM UTC-7, Tim Brown wrote: > I'm not sure if I'd want to be able to arbitrarily change > current-proxy-servers on the fly (something that has proven difficult, > highlighted by the hoops I have to jump through in the tests). On the other > hand it's probably not necessary, since proxy servers are a fixed feature of > the network configuration. Mostly. > > On 20 October 2015 18:46:05 BST, Jay McCarthy <jay.mc...@gmail.com> wrote: > I'd want Matthew and Sam's input on this, but I personally don't see > anything wrong with have to parameterize with a promise: > > (parameterize ([c-p-s (delay '())]) ....) > > It seems a lot cleaner than having the effectful behavior and using > the parameter like a global variable (which I like to pretend they > aren't.) >
You could provide a `(call-with-proxy-servers proxy-servers thunk)` procedure to hide the detail that it's a parameter, and then a `(with-proxy-servers proxy-servers body ...)` syntax rule to make it cleaner to use. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.