Hi, On Sat 12 Jan 2013 22:22, [email protected] (Ludovic Courtès) writes:
> Andy Wingo <[email protected]> skribis: > >> I find myself writing (read-delimited "" p) to slurp in a file as a >> string, but it's not a very straightforward way to say that. >> >> What about `read-all'? We could add it to `(ice-9 rdelim)', I guess. >> R6RS calls this `read-string-all'. > > Sounds like a good idea. Patch attached. I didn't update the docs because it wasn't clear to me that (ice-9 rdelim) is actually the right place to put it. What do you think? Should we perhaps put it in a new (ice-9 ports)? Are the names right? I started by writing it in C but I noticed the C was doing a very stupid get-and-set algorithm, so I figured it got no advantage and we should just write it in Scheme from the get-go. Andy -- http://wingolog.org/
