From: Erik Naggum <>
Date: Mon, 01 Apr 2002 12:14:11 GMT
Newsgroups: comp.lang.lisp
Message-ID: <>

* Kent M Pitman <>
| I think INPUT-STREAM-P and OUTPUT-STREAM-P are intended to guide you as
| to what kinds of things you are intended to do on an object you've just
| found.


| In this regard, I would say it's most important that if you do
|  (input-stream-p x) => t
| on a closed stream, you are implying that peeking for data on the stream
| is going to yield eof information without a problem and not complain that
| it was improper for you to do this.  Analogously for OUTPUT-STREAM-P.

  Here I disagree.  If you are going to attempt any operations on a stream,
  open-stream-p gives the authoritative answer on whether any I/O will work
  on it, not whether it is an input-stream or an output-stream.

  In a fight against something, the fight has value, victory has none.
  In a fight for something, the fight is a loss, victory merely relief.