[Scheme-reports] 6.13 I/O Andy Wingo (05 Jan 2013 21:50 UTC)
Re: [Scheme-reports] 6.13 I/O John Cowan (06 Jan 2013 05:33 UTC)

Re: [Scheme-reports] 6.13 I/O John Cowan 06 Jan 2013 05:33 UTC

Andy Wingo scripsit:

> Why allow current-input-port to be a binary port?  I would not do that.

Why forbid it?  Some programs deal exclusively with binary input.

> Likewise I don't see why read-u8 and friends would default to a textual
> port.

It is not necessarily an error to invoke read-u8 on a textual port, if it is
also a binary port.  We expect both to often be the case.

--
John Cowan              cowan@ccil.org          http://www.ccil.org/~cowan
Most people are much more ignorant about language than they are about
[other subjects], but they reckon that because they can talk and read and
write, their opinions about talking and reading and writing are as well
informed as anybody's.  And since I have DNA, I'm entitled to carry on at
length about genetics without bothering to learn anything about it.  Not.
                        --Mark Liberman

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports