Subject: Re: read-sequence
From: Erik Naggum <erik@naggum.no>
Date: 09 Sep 2002 17:03:09 +0000
Newsgroups: comp.lang.lisp
Message-ID: <3240579789398792@naggum.no>

* Adam Warner
| There is a way around this. You use read-sequence in stages, manually
| extending the vector each time if there is still data remaining on stdin.

  This is massively wasteful.  If you have this kind of need, which indicates
  that something is wrong at the outset, read a bunch of chunks and
  concatenate them at the end.  The function `concatenate´ should compute the
  sum of the lengths of its arguments and copy each chunck only once.

| Lisp is so high level that I just get surprised when this kind of
| functionality is not built in.

  It is because it is high-level that you do not need these things.  It
  appears that you are still thinking in very low-level terms.

-- 
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.