[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] Binary and character ports (and an unrelated small issue)

On Sun, May 08, 2011 at 09:56:07PM -0300, Jeronimo Pellegrini wrote:
> Another queston related to binary and character ports: just as
> there are predicates to verify the case of a character, the
> exact kind of number (complex?, integer? etc), and wether
> a port is for input or output, shouldn't also be predicates
> to test wether a port is binary or character? Maybe
> character-port? and binary-port?

Oops. Sorry -- I meant "string ports" and "file ports".
The predicates character-port? and binary-port? are already

(string-port? port)
(file-port? port)


Scheme-reports mailing list