[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read-all ?
From: |
Andy Wingo |
Subject: |
Re: read-all ? |
Date: |
Tue, 22 Jan 2013 10:15:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Hi,
On Sat 12 Jan 2013 22:22, address@hidden (Ludovic Courtès) writes:
> Andy Wingo <address@hidden> 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/
- read-all ?, Andy Wingo, 2013/01/12
- Re: read-all ?, Ludovic Courtès, 2013/01/12
- Re: read-all ?,
Andy Wingo <=
- Re: read-all ?, Andy Wingo, 2013/01/22
- Re: read-all ?, Ludovic Courtès, 2013/01/22
- Re: read-all ?, Andy Wingo, 2013/01/22
- Re: read-all ?, Ludovic Courtès, 2013/01/22
- Re: read-all ?, Andy Wingo, 2013/01/22