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
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’.
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
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
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
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 `
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
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/