Craig McDaniel <[email protected]> writes: >> I wonder if it wouldn't be a good idea to move the call to binding >> fromsocket-replinto accept-fn. It seems like a reasonable default to >> rebind *in* and *out* for the duration of the accepting function; the >> example uses this as does my application. > > I'm not sure that rebinding *in* and *out* is something that every > socket server app would want to do. And couldn't it interfere with > debugging? You may not want that println you put in there for > debugging to go out the socket to the other side.
Well, I think the rebinding should be what _most_ users of the function should want to do rather than _every_ use. The atypical uses can require a little more work if it streamlines the common cases IMHO. You could always write to *err* for debugging. But I guess I can't assume my own use of the function is all that typical. -Phil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
