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

Re: Specification vs. Implementation



Per Bothner <per@xxxxxxxxxxx> writes:

> I don't buy this at all.  Why can't I replace:
>   (make-simple-reader id descriptor etc ...)
> by
>   (make-simple-input-port id descriptor etc ...)
> I.e. why can't I merge the functionality of readers into
> input-ports?

You could do that, but you'd have eliminated only one procedure call.
Moreover, it's unclear to me what you've gained.  It still wouldn't
make the primitive layer obsolete.

You've stated that you think you can get their performance, and lack
of buffering from the ports layer, but you haven't demonstrated how to
do it---it's certainly not straightforward, given the buffering
inherent in things like PEEK-CHAR.  It'll take a concrete proposal to
convince me to change the layout.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla