Re: u8-ready? and char-ready?
Lassi Kortela 04 Mar 2020 15:12 UTC
> I think the I/O methods should be extended with the following features
>
> 1) a “transfer up to N bytes/characters that are currently available” method that returns the number of bytes/characters that have been transferred (0 when nothing is available)
>
> 2) a “transfer at least N bytes/characters” method with an optional timeout parameter indicating how long to wait for N bytes to become available, and return the number of bytes transferred
>
> These could probably be combined in the same method with many parameters.
Are you suggesting these for SRFI 181 specifically, or for Scheme in
general?