Re: read-all ?

2013-01-22 Thread Andy Wingo
On Tue 22 Jan 2013 14:32, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> So, proposal: read-all{,!} to read-string{,!} and add optional count >> argument to read-string, and leave it in ice-9 rdelim. WDYT? > > Go for it! Done, thanks for the

Re: read-all ?

2013-01-22 Thread Ludovic Courtès
Andy Wingo skribis: > So, proposal: read-all{,!} to read-string{,!} and add optional count > argument to read-string, and leave it in ice-9 rdelim. WDYT? Go for it! Ludo’.

Re: read-all ?

2013-01-22 Thread Andy Wingo
On Tue 22 Jan 2013 11:01, l...@gnu.org (Ludovic Courtès) writes: >>> Are the names right? > > ‘read-all’ doesn’t convey the idea that it’s textual (unlike the R6RS > names). > > Perhaps ‘port-contents-as-string’, or ‘read-all-string’, or...? What about read-string

Re: read-all ?

2013-01-22 Thread Ludovic Courtès
aps put it in a new (ice-9 ports)? I would avoid adding a new module, unless there are other things to put in there. >> Are the names right? ‘read-all’ doesn’t convey the idea that it’s textual (unlike the R6RS names). Perhaps ‘port-contents-as-string’, or ‘read-all-string’, or

Re: read-all ?

2013-01-22 Thread Andy Wingo
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

Re: read-all ?

2013-01-22 Thread Andy Wingo
Hi, On Sat 12 Jan 2013 22:22, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo 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 `

Re: read-all ?

2013-01-12 Thread Ludovic Courtès
Hi! Andy Wingo 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 `re

read-all ?

2013-01-12 Thread Andy Wingo
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'. Thoughts? Andy -- http://wingolog.org/