1 # read-byte-buffered: one higher-level abstraction atop 'read'. 2 # 3 # There are many situations where 'read' is a lot to manage, and we need 4 # to abstract some details away. One of them is when we want to read a file 5 # character by character. In this situation we follow C's FILE data structure, 6 # which manages the underlying file descriptor together with the buffer it 7 # reads into. We call our version 'buffered-file'. Should be useful with other 8 # primitives as well, in later layers. 9 10 == data 11 12 # The buffered file for standard input. Also illustrates the layout for 13 # b