This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
question about r5rs (was Re: pack/unpack)
>On Tue, Feb 01, 2000 at 01:07:30AM +0900, sen_ml@eccosys.com wrote:
> btw, looking through r5rs, i noticed in 7.6.1:
>
> (with-input-from-file string thunk)
> (with-input-to-file string thunk)
>
> String should be a string naming a file, and proc should be a procedure...
>
> but i don't see any mention of 'proc' -- did the authors mean 'thunk'
> here or am i misunderstanding something? is there an errata list
> around somewhere?
crayc> A thunk is a procedure that takes no arguments.
ah, thank you for that explanation! knowing the definition of a thunk
is very helpful. is there a good glossary of terms around somewhere?
i would also like to learn what a continuation is. not having had
much college-level (or above) c.s. training, some of these terms are
lost on me.
back to section 7.6.1 of the report...strictly speaking, shouldn't the
report say:
String should be a string naming a file, and thunk should be a procedure
if what is being referred to is the second argument of
with-input-from-file or with-input-to-file? i didn't manage to quote
the italics in my posting, but both 'thunk' and 'proc' are in italics
in the report, so they refer to names of things right -- granted the
names are suggestive of what they are referring to? in the rest of
the paragraph (the one that starts w/ "String should be"), there is no
mention of 'proc', only 'thunk'.
or am i STILL missing something?
thanks for your patience!