[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Should http-client automatically consume unconsumed inpu
[Chicken-users] Should http-client automatically consume unconsumed input? [Was: Re: ssax examples could not run]
Tue, 21 Jun 2011 21:53:45 +0200
Also, about this piece of code:
> (pp (call-with-input-request
> #f (lambda (p)
> (let ((sxml (ssax:xml->sxml p '())))
> ;; Consume the rest of the stream, ssax does not
> ;; fully read until the end.
> (read-string #f p)
Does it make sense to have http-client automatically consume any
remaining data after the user-supplied reader returns?
What about continuations? Or perhaps it should be read when the
*next* request is done?
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth