This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Ticket 342: Have READ-BYTEVECTOR(!) return 0 at EOF

2012-04-05 09:39:08
WG1 - Core
alexshinn
major
cowan
wontfix
source
closed
2012-02-14 05:01:02
defect

Currently, read-bytevector and read-bytevector! return an EOF object at EOF; otherwise, the number of bytes read is returned. Returning 0 at EOF instead would make the result always an exact integer. The only ambiguity would be that reading a bytevector of length 0 (which is to say, not reading any bytes at all) would not report EOF; however, this is a pointless thing to do.

statusnewdecided

The WG voted to reject this proposal.

resolutionwontfix
statusdecidedclosed